source: liacs/ccs/op3/common.pl@ 177

Last change on this file since 177 was 2, checked in by Rick van der Zwet, 15 years ago

Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)

  • Property svn:executable set to *
File size: 220 bytes
RevLine 
[2]1$file="$ARGV[0]";
2if (! -r $file ) {
3 print STDERR "Usage <program> <file>";
4 exit(128);
5}
6
7sub percent {
8 my ($number, $total) = @_;
9 $percent = $number/$total * 100;
10 return "(", int($percent), "%)";
11}
12
Note: See TracBrowser for help on using the repository browser.