I am trying to get a number from a text file and add one to it.
Here is my code so far. Where does one go from here?
print "Content-type: text/html\n\n";
$counttext = 'd:/xxx.xxx.xxx.xxx/perl/thecounter/counttext.txt';
open(COUNTTHIS, "< $counttext") or die "I can't open counttext: $!\n";
$thenumber = <COUNTTHIS>; #I thought something like this, but no
$thenumber = ++$thenumber;
Originally posted as a Categorized Question.