I am inquiring to see if there is a more efficient way, than the below code, to dereference a reference returned from a subroutine. Could you please help me out?
my $temp_scalar=subroutine(); my @ARRAY=@$temp_scalar; undef $temp_scalar; sub subroutine { my @array=("one", "two"," three"); return \@array; }
In reply to More efficient dereferencing of a subroutine return by gg48gg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |