in reply to Re: ref() and Regexp
in thread ref() and Regexp

Wouldn't qr/FOO/ be cheaper? (an empty regex is special)

Replies are listed 'Best First'.
Re^3: ref() and Regexp
by JadeNB (Chaplain) on Dec 16, 2009 at 00:09 UTC
    an empty regex is special
    In a match (see m//), but not for qr//:
    $ perl -e 'print qr//;' (?-xism:)