home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!agate!dog.ee.lbl.gov!network.ucsd.edu!nic!netlabs!lwall
- From: lwall@netlabs.com (Larry Wall)
- Newsgroups: comp.lang.perl
- Subject: Re: or puzzlement
- Message-ID: <1992Jul24.192137.29710@netlabs.com>
- Date: 24 Jul 92 19:21:37 GMT
- References: <BrtMFu.D0L@unx.sas.com> <MERLYN.92Jul23070028@romulus.reed.edu> <Brut2B.80J@unx.sas.com>
- Sender: news@netlabs.com
- Organization: NetLabs, Inc.
- Lines: 24
- Nntp-Posting-Host: scalpel.netlabs.com
-
- In article <Brut2B.80J@unx.sas.com> kent@manzi.unx.sas.com (Paul Kent) writes:
- : perhaps "next" is not as executable as "return".
-
- It's just as executable, and just as embeddable within an expression.
- What it isn't just as, is capable of evaluating an expression argument.
-
- [How's that for anomalous but useful syntax? How 'bout let's do it right
- and revise English, say, next Friday? Good, I'll be there.]
-
- : here are some attempts..
- : [...]
- : print STDERR "\n\n and now for loopy tricks\n\n";
- : for $d ($d1,$d2)
- : {
- : opendir(D, $d) || warn "loop_or: no $d" || next;
- : print STDERR "loop_or: $d must exist cuz we got this far\n";
- : }
-
- Again, these are failing because (without parens) warn is a list operator,
- and a list operator eats everything to its right that is of the same
- precedence as comma or higher. Which is the same as saying it eats
- everything, since comma is the lowest precedence.
-
- Larry
-