|
From: | Peter Vogel |
Subject: | RE: scanner bug (was: cons 2.1.2 issues) |
Date: | Fri, 3 Nov 2000 09:17:57 -0800 |
Yes, do {} while (<cond>); is
really just a variation of all the postfix
conditional operators. do {}; is a statement,
just like "print;" is a statement, so
do {} while (<cond>); is no different than, for
example:
print if (/pattern/);
Been around for a long long time.
-Peter
---
Peter A. Vogel
Manager, Engineering Operations
iReady Corporation
http://www.iready.com http://www.iready.net
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden]
> Sent: Friday, November 03, 2000 7:27 AM
> To: Brad Garcia
> Cc: cons mailing list
> Subject: Re: scanner bug (was: cons 2.1.2 issues)
>
>
>
> You write:
> >Question for the perl experts: when was the "do while" loop added to
> >perl? I cannot find any documentation for a "do while" loop. I'm
> >wondering if Zach has an older version of perl which doesn't
> understand
> >it.
>
> It would have to be a pretty old perl. I recall that do {} while ();
> existed back in perl 1.0-beta (vintage 1986)! I suppose I'm
> dating myself.
> "do" is an overly overloaded operator/function. It took me a
> long time to
> change over from the old function call syntax of
> do foo ();
> to
> &foo ();
>
> --
> Eric Krohn
>
> _______________________________________________
> address@hidden
> http://mail.gnu.org/mailman/listinfo/cons-discuss
> Cons URL: http://www.dsmit.com/cons/
>
[Prev in Thread] | Current Thread | [Next in Thread] |