in reply to Re:(2501- further clarification) Implementing strict on shoddy code
in thread Implementing strict on shoddy code
If you uncomment the print statement in TestPrint in the require, you will get the strict errors, while the in the controller, you see the vars $w and $z are not defined yet still recieve no errors. I hope this information helps DaveController -- #!perl $x = 5; print "Before Require $x\n"; require('e:/perltest/require.cgi'); &MoreTest; sub MoreTest { $y = 6; print "After Require $x, $y\n"; &TestPrint(); print "After TestPrint $x, $y, $z"; } REQUIRE -- #!perl use strict; print "In Require\n"; sub TestPrint { my $z = 10; # print "$x $y "; print "$z\n"; } 1;
|
|---|