"Exporting" is something completely different, googling won't help here.
Corion was right, but the concept you need to understand is called "scoping" of lexical ("my") variables.
Have a look here: Coping with Scoping.
HTH! :)
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
In reply to Re: scalar out of a loop
by LanX
in thread scalar out of a loop
by mitchreward
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |