Path: utzoo!news-server.csri.toronto.edu!rutgers!usc!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!convex!news From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.lang.perl Subject: Re: Perl-Users Digest #651 Message-ID: <1991Mar11.154037.4725@convex.com> Date: 11 Mar 91 15:40:37 GMT References: <1991Mar9.230553.22037@uvaarpa.Virginia.EDU> Sender: news@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 13 Nntp-Posting-Host: pixel.convex.com From the keyboard of jb3o+@andrew.cmu.edu (Jon Allen Boone): :we need another (what, ANOTHER?) "special variable" to hold the contents :of a regexp pattern - $1 .. $9 would, like Marc said, hold the first 9 :()'s, but you could shift and unshift the variable to make $1 .. $9 :change. : :how about @PAT ? I think that would be too much copying. Let the programmer assign the pattern match to an array if they want, but don't force all those extra copies on everyone. --tom