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