in reply to meaning of the following array
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 )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: meaning of the following array
by davorg (Chancellor) on Feb 02, 2007 at 08:54 UTC | |
by telcontar (Beadle) on Feb 02, 2007 at 11:40 UTC | |
|
Re^2: meaning of the following array
by parv (Parson) on Feb 02, 2007 at 07:42 UTC |