NotProud has asked for the wisdom of the Perl Monks concerning the following question:
Thank you!#!/usr/local/bin/perl -w use strict; print "Content-type: text/html\n\n"; $counttext = 'd:/xxx.xxx.xxx.xxx/perl/thecounter/counttext.txt'; $thenumber; open(COUNTTHIS, "< $counttext") or die "I can't open counttext: $!\n"; print (<COUNTTHIS>); $thenumber = <COUNTTHIS>; #I thought something like this, but no print "$thenumber"; print "<br>"; $thenumber = ++$thenumber; print "$thenumber";
Originally posted as a Categorized Question.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I assign a variable to the file content?
by Corion (Patriarch) on Sep 25, 2000 at 01:45 UTC | |
by tye (Sage) on Sep 25, 2000 at 21:26 UTC | |
|
Re: How do I assign a variable to the file content?
by meonkeys (Chaplain) on Sep 25, 2000 at 02:33 UTC | |
by NotProud (Novice) on Sep 25, 2000 at 21:15 UTC |