yes, that would be a good idea, to add in control structures..

i wrote a tutorial about them which you can find here:
http://www.sharemation.com/~perl/tut

alltho they're momentarily down for maintenance (they joy of free webspace)

what you're looking for is something like:

for(@foo) {  if (condition) {do stuff } }

hth,

Jos Boumans

----- Original Message -----
From: "Tim Grossner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 24, 2001 11:13 PM
Subject: For loop...


> I am using a for (@targets) loop to connect to cisco routers...if the
> target is unreachable I need it to go on to the next target in the array
> @targets. What should I look for? An "else" statement or what?
>
>
>
>
> Tim Grossner
> voice - 217-438-6161
> pager - 217-467-3148
> cell - 217-971-3060
> data - [EMAIL PROTECTED]
> (GPG/PGP key available at http://www.cityscape.net/~tg/tim.grossner.gpg or
http://www.wirelessways.org/~tg/tim.grossner.gpg
> meatspace address - 202 Harrison, Auburn, Illinois 62615
>
> "Davien the Betrayer shall hear no reason, nor bow to the Law of the
> Major Balance; neither shall the Fellowship be restored to Seven until
> the Black Rose grows wild in the vales of Daon Ramon."
> "The briar will take root on the day that Arithon s'Ffalenn embraces
kingship."
>
>       --The Black Rose Prophecy
>
>

Reply via email to