in reply to What do I do wrong? I want an array of arrays
I don't know exactly what you're trying to do, but I would guess you want something like this.
my @c = ( 22, 44, 55 ); my @d = ( 'yy', 'tt' ); my @b; @b[0,1] = ( $c[0], $d[0] ); my @e = ( $b[1] ); print "<$e[0]>\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What do I do wrong? I want an array of arrays
by pcouderc (Monk) on Sep 27, 2005 at 18:45 UTC |