in reply to Making variables visible between calls.
How about just this?
my $function = sub { my $var = 'xpto'; print ">> $var <<\n" }; $function->();
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Making variables visible between calls.
by ambs (Pilgrim) on Dec 12, 2008 at 18:11 UTC | |
by eric256 (Parson) on Dec 12, 2008 at 20:13 UTC |