in reply to Re^2: More efficient dereferencing of a subroutine return
in thread More efficient dereferencing of a subroutine return
Can you show what exactly gives you that error? I get no errors/warnings with this:
#!/usr/bin/env perl use strict; use warnings; use feature 'say'; my @result = @{ subroutine() }; say "@result"; sub subroutine { my @array = (); return \@array; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: More efficient dereferencing of a subroutine return
by parv (Parson) on Feb 18, 2013 at 00:05 UTC | |
by Anonymous Monk on Feb 18, 2013 at 00:24 UTC | |
by parv (Parson) on Feb 18, 2013 at 00:49 UTC | |
by Anonymous Monk on Feb 18, 2013 at 01:03 UTC | |
by tmharish (Friar) on Feb 18, 2013 at 06:45 UTC | |
| |
by parv (Parson) on Feb 18, 2013 at 01:05 UTC | |
by parv (Parson) on Feb 18, 2013 at 01:05 UTC |
In Section
Seekers of Perl Wisdom