Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!convex!usenet From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.lang.perl Subject: Re: shouldn't backslash really quote? Message-ID: <1991May24.065623.18036@convex.com> Date: 24 May 91 06:56:23 GMT References: <1991May22.175723.18174@uvaarpa.Virginia.EDU> <1991May22.202128.27037@convex.com> <1991May23.220754.8613@NCoast.ORG> Sender: usenet@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 23 Nntp-Posting-Host: pixel.convex.com From the keyboard of allbery@ncoast.ORG (Brandon S. Allbery KF8NH): :As quoted from <1991May22.202128.27037@convex.com> by tchrist@convex.COM (Tom Christiansen): :+--------------- :| From the keyboard of eichin@apollo.com: :| :if(/x_\\$$pat/) { :| : print "found x-twoslash-dollar-pat\n"; :| :} :| :| This time you didn't escape the $, so it's anchoring :| at the end of the line. Shouldn't match. :+--------------- : :Uh, wouldn't the $$ expand to the process ID of Perl, since the backslash is :escaped? Yup, perl seems to scan left to right here, so would pick up $$ before $pat. Oh well. --tom -- Tom Christiansen tchrist@convex.com convex!tchrist "So much mail, so little time."