http://www.perlmonks.org?node_id=438844


in reply to Re: This is not a pipe
in thread This is not a pipe

It would match anything. It's an alternation, matching either start of string or end of string.

Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^3: This is not a pipe
by thor (Priest) on Mar 12, 2005 at 05:14 UTC
    Right you are. I was supposing that this was one of those situations where the regex characters were taken literally, like if you were to do m/^{/;.

    thor

    Feel the white light, the light within
    Be your own disciple, fan the sparks of will
    For all of us waiting, your kingdom will come