Thanks to all...
>Some useful perl control structures:
>
>do { statements; } while someexpression;
>do { statements; } until someexpression;
>while (someexpression) { statements; } --or-- statement while
>someexpression;
>until (someexpression) { statements; } --or-- statement until
>someexpression;
>unless (someexpression) { statements; } --or-- statement unless
>someexpression; --or-- someexpression || statement;
>if (someexpression) { statements; } --or-- statement if someexpression
>--or-- someexpression && statement;
>if (someexpression) { statements; } elsif (anotherexpression) { statements;
>} else { statements; }
>for ( initialexpression; testtocontinueexpression;
>executeatendofloopstatement ) { statements; }
>foreach $somescalar ( @somelist ) { statements; }
>
>- B
>
>__________________
>
>
>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]
>
>
>
>--
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
--
-------------------------------
- Teresa Raymond -
- Mariposa Net -
- http://www.mariposanet.com -
-------------------------------
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]