Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Quantified named captures in 5.10

by mugwumpjism (Hermit)
on Dec 21, 2007 at 06:22 UTC ( [id://658399]=note: print w/replies, xml ) Need Help??


in reply to Quantified named captures in 5.10

I don't think that %- is about changing the semantics of matching, but more for when you're repeating parts of a regular expression, probably using interpolated variables (ie, qr{ } sub-expressions).

You should probably look into the /g regex modifier.

$h=$ENV{HOME};my@q=split/\n\n/,`cat $h/.quotes`;$s="$h/." ."signature";$t=`cat $s`;print$t,"\n",$q[rand($#q)],"\n";

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-25 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found