Hi,
Why is it that if I use "strict" in Perl, I can no longer use any variable as I wish?
Let me explain with this simple script.
If I run the script I get this output:
/usr/www/users/yjulien/voile/cgi-bin/calcule_energie
But if I ad "use script;" like this:
I get an "Internal Server Error" message.
Where is the conflict?
Thanks,
Yves
Why is it that if I use "strict" in Perl, I can no longer use any variable as I wish?
Let me explain with this simple script.
Code:
#!/usr/local/bin/perl print "Content-type: text/html\n\n"; $path = "/usr/www/users/yjulien/voile/cgi-bin/calcule_energie"; print $path exit;
/usr/www/users/yjulien/voile/cgi-bin/calcule_energie
But if I ad "use script;" like this:
Code:
#!/usr/local/bin/perl use strict; print "Content-type: text/html\n\n"; $path = "/usr/www/users/yjulien/voile/cgi-bin/calcule_energie"; print $path exit;
Where is the conflict?
Thanks,
Yves
Comment