'John Porter ' wrote:
>
> Sterin, Ilya wrote:
> > Well then maybe $_ can be a reference to a multidimensional array or hash,
> > and temp vars can be access like this.
> >
> > for ( @foo, @bar ) {
> > print "$_->[0] : $_->[1]\n";
> > }
>
> That's bizarre and unnecessary. We can already do this:
>
> for ( \@foo, \@bar ) {
> print "$_->[0] : $_->[1]\n";
> }
>
> --
> John Porter
No, that does not work:
perl -le '@solids=(1..7);@stripes=(9..15);\
for (\@stripes, \@solids){\
print "$_->[0] and $_->[1] are the same color"\
}'
9 and 10 are the same color
1 and 2 are the same color
--
David Nicol 816.235.1187
"Mary had a little chainsaw" -- Angus Oblong