home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / perl / 7082 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  716 b 

  1. Path: sparky!uunet!dtix!darwin.sura.net!sgiblab!sgigate!sgi!fido!snarf!cwilson
  2. From: cwilson@snarf.wpd.sgi.com (Chan Wilson)
  3. Newsgroups: comp.lang.perl
  4. Subject: Regex question
  5. Message-ID: <1ejsonINNeal@fido.asd.sgi.com>
  6. Date: 20 Nov 92 23:35:51 GMT
  7. Organization: Silicon Graphics, Inc.  Mountain View, CA
  8. Lines: 12
  9. NNTP-Posting-Host: fddi-snarf.wpd.sgi.com
  10.  
  11.  
  12. I thought I knew how to do this... guess I don't.  I want to have
  13. something like this:
  14.  
  15. ($suit, $pip) = /(\S+) of (Spade|Heart|Club|Diamond)/;
  16.  
  17. but that doesn't work.  What will?
  18.  
  19. --Chan
  20.        Chan Wilson  ---  cwilson@sgi.com  ---  415/390-5006
  21.           Silicon Graphics, Inc.   Mountain View, CA
  22.        -> The only stupid question is the one not asked. <-
  23.