in reply to Re-define Word Boundary?

You can use overload to change the meaning of regexps. It works like this: you can redefine the meaning of //, s///, qr//... literals so that perl applies some to them before compiling to internal form. This way, you can change \b's to some look{ahead,behind} expression, or better still, use some other escape sequence for that.

I have no example code for this. I am sure I have once seen one, but I can't find it.

Update: as ysth said, that code is in the perlre pod. Sorry.

Replies are listed 'Best First'.
Re: use overload qr
by diotalevi (Canon) on Nov 22, 2003 at 02:39 UTC
    Abigail already posted it in the raw, overload.pm-less fashion.