Do you know where your variables are? | |
PerlMonks |
Re: main and external scriptby gu (Beadle) |
on Dec 02, 2005 at 18:52 UTC ( [id://513689]=note: print w/replies, xml ) | Need Help?? |
At compile time, $verbose is used only once... To fix your problem you can write : But as ikegami said do is better. Furthermore, you should write our $verbose = 1; in the required file to give it an appropriate scope. Gu
In Section
Seekers of Perl Wisdom
|
|