Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: foreach within a foreach

by Spenser (Friar)
on Jun 07, 2002 at 21:51 UTC ( [id://172683]=note: print w/replies, xml ) Need Help??


in reply to Re: foreach within a foreach
in thread foreach within a foreach

That "IN" is a good idea.  I tried it just now and it helped to cut down on a lot of code, but eliminating one layer of my foreach statements caused other problems.

I think have so much else going on in this script and even within the two foreach loops (lots of stuff that I left out of the posting) that it would be too much to unravel.  I may go back later and use it on this script.  I especially would like to adjust some other scripts that I created with this "IN" command.  I wasn't happy with the awkwardness of the code that I created by doing loops within loops.

I've been learning that a good mySQL statement can significantly cut down on a lot of Perl coding and speed up the programming process. Thanks for the tip.

That's Spenser, with an "s" like the detective.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://172683]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-24 19:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found