my @seq = ( 1 .. 5 ); my $seq = \@seq; # $seq is now a reference/pointer to @seq my @query = @$seq; # @query is now a copy
my $seq = [ 1 .. 5 ]; # anonymous list my @query = @$seq; # @query is now ( 1 .. 5 )
In reply to Re: meaning of the following array
by Tux
in thread meaning of the following array
by sanku
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |