Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Using qr// with a complicated regex

by elusion (Curate)
on Jul 13, 2002 at 00:48 UTC ( #181427=note: print w/replies, xml ) Need Help??


in reply to Re: Using qr// with a complicated regex
in thread Using qr// with a complicated regex

Yup. That's a typo. Sorry 'bout that, that's what I get for making up code instead of using cut-and-paste. ;-) It should be:
my @vars; $string =~ /(?{local @1 = ();} (?:( (\d) (?{ local @1 = (@1, $1) }) \w )+ \d\w (?{ @vars = @1 })/x;

elusion : http://matt.diephouse.com

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://181427]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2019-07-18 19:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?