in reply to A question on array references.
is exactly the same asqw[this is the first line], qw[second one is here]
How can Perl get your first line?qw[this is the first line second one is here]
You probably want this:
my @refarray = ([qw/this is the first line/], [qw/second one is here/], ); print "@{$refarray[0]}\n";
Updated.
|
|---|