Keep It Simple, Stupid | |
PerlMonks |
Re: Returning and using a glob from a sub. (lvalue sub)by LanX (Saint) |
on Dec 13, 2014 at 15:31 UTC ( [id://1110273]=note: print w/replies, xml ) | Need Help?? |
My first idea was using lvalue subs, but it didn't work in the debugger REPL so I thought this might not work ... ( Trying to find out why revealed that it works pretty well from a source file. script:
output:
UPDATEoutput from Data::Dump seems correct... globs are just confusing
UPDATEchanged dd *a to dd \*a to make output of Data::Dump less confusing
UPDATE²) not a bug, just a problem with my debugger settings!
<Reveal this spoiler or all in this thread>
Cheers Rolf (addicted to the Perl Programming Language and ☆☆☆☆ :)
In Section
Seekers of Perl Wisdom
|
|