in reply to execute perl script in html

Hi Alan,

It may be overkill for what you are doing, but the CGI module does a great job with this kind of work.

I'm a little confused by your top line, #!/perl/bin/perl.exe; are you running this on a Windows system?

Here's some small additions to niceify your code:
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;
That should give you some better debugging options.

Cheers,
ibanix

$ echo '$0 & $0 &' > foo; chmod a+x foo; foo;