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";
|
|---|