Pontifex
08-09-2007, 12:04 AM
Reading this:
http://www.perl.com/pub/a/2002/04/23/mod_perl.html?page=2
...I have either to use the fully qualified names such as $My::Config::test, which I dislike...
I should be able to do something like this:
wfs.pl
my $force = 1;
wfs_menu_function.pm
if ($wfs::force != 0) {
return 0;
}
And have the code execute properly (e.g. Return 0 after passing the 'if'). But the conditional is never evaluated to true.
I also tried this:
if ($main::force != 0) {
return 0;
}
But neither work. What gives?
--Pontifex
http://www.perl.com/pub/a/2002/04/23/mod_perl.html?page=2
...I have either to use the fully qualified names such as $My::Config::test, which I dislike...
I should be able to do something like this:
wfs.pl
my $force = 1;
wfs_menu_function.pm
if ($wfs::force != 0) {
return 0;
}
And have the code execute properly (e.g. Return 0 after passing the 'if'). But the conditional is never evaluated to true.
I also tried this:
if ($main::force != 0) {
return 0;
}
But neither work. What gives?
--Pontifex