agoth has asked for the wisdom of the Perl Monks concerning the following question:
@ary = ('item1:value1:text1', 'item2:value2:text2'); for (@ary) { push @flibble, [ split /:/, $_ ]; } for (@ary) { push @flibble, \(split /:/, $_ ); } # then for (@flibble) { print "row : @{ $_ } \n"; # to test }
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: creating array refs
by Boogman (Scribe) on Aug 21, 2000 at 22:32 UTC | |
Re: creating array refs
by btrott (Parson) on Aug 21, 2000 at 22:19 UTC |