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.
Expand|Select|Wrap|Line Numbers
- #!/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:
Expand|Select|Wrap|Line Numbers
- #!/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