gg48gg has asked for the wisdom of the Perl Monks concerning the following question:
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; }
|
|---|