home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!gatech!news.byu.edu!eff!kragar!brendan
- From: brendan@eff.org (Brendan Kehoe)
- Subject: Empty IF-TRUE-EXPR in ?:
- Message-ID: <BRENDAN.92Jul21221748@eff.org>
- Sender: usenet@eff.org (NNTP News Poster)
- Nntp-Posting-Host: eff.org
- Reply-To: brendan@eff.org
- Organization: The Electronic Frontier Foundation
- Distribution: usa
- Date: Wed, 22 Jul 1992 02:19:56 GMT
- Lines: 15
-
-
- I was thinking, it'd be nice to be able to have
-
- $foo ? $foo : 4;
-
- be also available as
-
- $foo ? : 4;
-
- to avoid re-parsing the second case of $foo. (Where $foo could be any
- arbitrarily large expression.)
-
- --
- Brendan Kehoe brendan@eff.org / brendan@cs.widener.edu
- Please send CuD Archive submissions to cudarch@eff.org.
-