Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: How to extent the scope of local variable outside block??by moritz (Cardinal) |
on May 13, 2015 at 13:06 UTC ( [id://1126547]=note: print w/replies, xml ) | Need Help?? |
Declare the variable outside the foreach loop, then you can access it it outside the loop.
In Section
Seekers of Perl Wisdom
|
|