push references:
arrays and hashes can only hold scalar values; luckily references are scalar values ;-)push(@array,\@stuff); push(@array,\@morestuff);
Update: Maybe it helps to read over perldata and perlref again...
regards,
tomte
Hlade's Law:
If you have a difficult task, give it to a lazy person --
they will find an easier way to do it.
In reply to Re: pushing into arrays of arrays
by Tomte
in thread pushing into arrays of arrays
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |