mystik has asked for the wisdom of the Perl Monks concerning the following question:
Hello all,
I want to do something like this:
but perl doesn't let me:sub foo { return ({},[]); } my (%baz, @bar); (\%baz,\@bar) = &foo();
Is there a one liner to assign references into named non-reference vars?Can't modify reference constructor in list assignment at foo.pl line 5 +, near ");" Execution of foo.pl aborted due to compilation errors.
Back to
Seekers of Perl Wisdom