in reply to Re: More efficient dereferencing of a subroutine return
in thread More efficient dereferencing of a subroutine return
Thanks to everyone for your input. For my purposes, I don't have to worry about the possibility of my sub returning undef. So, I like tobyink's:
for it's simplicity and function. I will keep in mind Anon's recommendation for using 'eval' in the event I need to handle possibility of undef. Thanks all! I hope this thread is useful for others in the future. I didn't find what I was looking for when I searched. Cheers.my @ARRAY = @{ subroutine() };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: More efficient dereferencing of a subroutine return
by gg48gg (Sexton) on Feb 19, 2013 at 17:51 UTC | |
by BrowserUk (Patriarch) on Feb 19, 2013 at 18:22 UTC | |
by AnomalousMonk (Archbishop) on Feb 19, 2013 at 23:26 UTC | |
by gg48gg (Sexton) on Feb 20, 2013 at 19:49 UTC |