home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / perl / 4859 < prev    next >
Encoding:
Text File  |  1992-07-21  |  781 b   |  29 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!gatech!news.byu.edu!eff!kragar!brendan
  3. From: brendan@eff.org (Brendan Kehoe)
  4. Subject: Empty IF-TRUE-EXPR in ?:
  5. Message-ID: <BRENDAN.92Jul21221748@eff.org>
  6. Sender: usenet@eff.org (NNTP News Poster)
  7. Nntp-Posting-Host: eff.org
  8. Reply-To: brendan@eff.org
  9. Organization: The Electronic Frontier Foundation
  10. Distribution: usa
  11. Date: Wed, 22 Jul 1992 02:19:56 GMT
  12. Lines: 15
  13.  
  14.  
  15. I was thinking, it'd be nice to be able to have
  16.  
  17.     $foo ? $foo : 4;
  18.  
  19. be also available as
  20.  
  21.     $foo ? : 4;
  22.  
  23. to avoid re-parsing the second case of $foo.  (Where $foo could be any
  24. arbitrarily large expression.)
  25.  
  26. --
  27. Brendan Kehoe                          brendan@eff.org / brendan@cs.widener.edu
  28.                         Please send CuD Archive submissions to cudarch@eff.org.
  29.