in reply to scalar out of a loop
"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 ☆☆☆☆ :)
|
|---|