in reply to execute perl script in html
That should give you some better debugging options.use strict; use warnings; my $counter; open FILE, "visit.txt" or die "Screwed it up...Can't open for read: $! +\n; $counter = <FILE>; close FILE; $counter++; open FILE, ">visit.txt" or die "Screwed it up...Can't open for write: +$!\n"; print FILE $counter; close FILE;
|
|---|