my @ARRAY = @{ subroutine() };
This is fewer lines of course, and arguably a bit neater than a temporary variable, but in terms of real efficiency (i.e. CPU, memory, etc) makes very little difference.
In reply to Re: More efficient dereferencing of a subroutine return
by tobyink
in thread More efficient dereferencing of a subroutine return
by gg48gg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |