Here's another simple question....  I have an array of arrays and I want
to use a foreach to do something with each entry...  currently I do this
:

foreach my $item (@myarray) {
        my ($item1, $item2) = @$item;
        <do stuff here>
}

Is there a way to combine the first 2 lines?  Is it any faster and less
memory intensive?  (granted it's not much now, but hey, I like
optimizing things to death...)

Something along the lines of :

foreach my ($item1, $item2) (@myarray) {
        <do stuff>
}

That doesn't seem to work for me, so I'm at a loss as to how to do
this...

Thanks,

---------------------------
Jason H. Frisvold
Senior ATM Engineer
Engineering Dept.
Penteledata
CCNA Certified - CSCO10151622
[EMAIL PROTECTED]
---------------------------
"I love deadlines.  I especially like the whooshing sound they make as
they go flying by." -- Douglas Adams [1952-2001]


Reply via email to