![]() |
|
go ahead... be a heretic | |
PerlMonks |
Re: Printing a Variable outside of the blockby Roy Johnson (Monsignor) |
on Apr 15, 2008 at 16:35 UTC ( #680567=note: print w/replies, xml ) | Need Help?? |
You need to declare your variables in the outermost scope you want to use them in. Since you want to use them outside the block, you should declare them outside (before) the block.
Caution: Contents may have been coded under pressure.
In Section
Seekers of Perl Wisdom
|
|