in reply to adding arrays to an array
And looks like one... see split -> Returns size of the list in scalar context.
Put [...] around the split to create an array-ref
Have a look at perldsc regarding nested structures.
Sorry I was too fast, change this
$row[$filecount] = \@row1;
Your split was OK cause you only took one value , but nested structures need references.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: adding arrays to an array
by coolda (Novice) on Oct 24, 2014 at 14:03 UTC | |
by LanX (Saint) on Oct 24, 2014 at 15:28 UTC | |
by coolda (Novice) on Oct 24, 2014 at 16:12 UTC |