Yeah, the half-pair is fun. Personally I would have split up that re as:
$s =~ s>{.*?} >{$sub[$n++]} >gx;
...but TIMTOWTDI. And as for the pipe being the character for alternation... you're right of course. But not many characters are used infrequently enough that they make good delimiters. So I just use whichever I feel looks good until there's a conflict with the content of the regex.
LAI
__END__In reply to Re^3: Whats your favorite nonstandard regex quote char?
by LAI
in thread Whats your favorite nonstandard regex quote char?
by demerphq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |