while ($file = shift @build_line or $dir = shift @makedir){ # will do
@build_line first then @makedir
} # can't do that with foreach
do{ # do this loop at least once regardless of the conditional at the
end
print "This time ", $n++," attempts.\n";
} until ($n >= 1);
need more?
> -----Original Message-----
> From: Teresa Raymond [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 11, 2002 3:02 PM
> To: Perl Beginners List
> Subject: while and do
>
>
> Could someone explain the while and do w/ couple of examples? I have
> yet to use them, only using the foreach loop and if else stmts.
> --
> -------------------------------
> - Teresa Raymond -
> - Mariposa Net -
> - http://www.mariposanet.com -
> -------------------------------
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]