Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!apple!rutgers!gatech!mcnc!uvaarpa!mmdf From: worley@compass.uucp (Dale Worley) Newsgroups: comp.lang.perl Subject: Need help with (\d+) problem (s/...(\d+)/$1/ not working?) Message-ID: <1990Nov7.154434.1102@uvaarpa.Virginia.EDU> Date: 7 Nov 90 15:44:34 GMT Sender: mmdf@uvaarpa.Virginia.EDU (Uvaarpa Mail System) Reply-To: worley@compass.uucp Organization: The Internet Lines: 15 From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) From: Dale Worley : ($a) = $string =~ s/\w+\s+(\d+)/$1/; Well, no, actually. I've never made s/// do anything special in array context. Terminal laziness, I guess. Duh. I thought I used it, but it was really a m//, not an s///. Memo to self: Check code before posting it. Dale Worley Compass, Inc. worley@compass.com -- Crucifixes are sexy because there's a naked man on them. -- Madonna