Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: regex compilation

by haukex (Archbishop)
on Feb 12, 2019 at 18:12 UTC ( [id://1229831]=note: print w/replies, xml ) Need Help??


in reply to Re^2: regex compilation
in thread regex compilation

Have you printed the two values you get?
The output is above in the end block.

I'm pretty sure that by "the two values", Corion meant $regex1 and $regex2.

By the way, the only quoting construct that doesn't interpolate at all is here docs with a single-quoted delimiter:

chomp( my $regex2 = <<'ENDREGEX' ); (?:(?|(?:\")([^\\\"]*(?:\\.[^\\\"]*)*)(?:\"))) ENDREGEX print $regex2, "\n"; my ($match2) = q|"hubba \"bubba\""| =~ /$regex2/; print $match2, "\n"; __END__ (?:(?|(?:\")([^\\\"]*(?:\\.[^\\\"]*)*)(?:\"))) hubba \"bubba\"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-19 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found