in reply to element of an array of arrays
DB<103> push( @Records, join ',', ( "AAA", 20130610, 730, 1015, "\n" + ) ); => 1 DB<104> \@Records => ["AAA,20130610,730,1015,\n"]
you rather want something like
DB<106> push @Records, [ "AAA", 20130610, 730, 1015 ]; => 1 DB<107> \@Records => [["AAA", 20130610, 730, 1015]] DB<108> $Records[0][2] => 730
see perldsc#ARRAYS OF ARRAYS
Cheers Rolf
( addicted to the Perl Programming Language)
extended code examples
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: element of an array of arrays
by JockoHelios (Scribe) on Jun 17, 2013 at 02:28 UTC | |
by LanX (Saint) on Jun 17, 2013 at 08:40 UTC |