sOKOle has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl $number_of_digits = 6; open (COUNTING, "< D:/StronyKlientow/cematsil.bptnet.pl/main/Alicja/pe +rl/counter.txt")||die"can not open"; $count = <COUNTING>; #chop ($count) if $count =~ /\n$/; close (COUNTING); $count ++; print ("Content-type: text/html\n\n"); print "<HTML><BODY BGCOLOR=lightblue><TABLE ALIGN=center BORDER=0>\n\n +"; print "<TR><TD ALIGN=Center VALIGN=top>\n\n"; @digits = split(//, $count); $spline = '%0' . $number_of_digits . 'd'; $count = sprintf("$spline", $count); @digitimages = split(//, $count); foreach $digitimage (@digitimages) { $image = "<img src=\"../obrazki/" . "$digitimage" . ".gif\" VSPACE=0>" +; print ("$image"); } print "\n"; print "</TD></TR></TABLE>\n</BODY></HTML>\n\n"; open (COUNTING, ">D:/StronyKlientow/cematsil.bptnet.pl/main/Alicja/per +l/counter.txt") or die "Cannot open: $!\n"; print COUNTING $count; close COUNTING; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: counter
by DamnDirtyApe (Curate) on Jul 19, 2002 at 06:54 UTC | |
by Abigail-II (Bishop) on Jul 19, 2002 at 10:35 UTC | |
by Anonymous Monk on Jul 19, 2002 at 07:04 UTC | |
by DamnDirtyApe (Curate) on Jul 19, 2002 at 07:16 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |