Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: ref() and Regexp

by Anonymous Monk
on Sep 13, 2009 at 10:37 UTC ( #794981=note: print w/replies, xml ) Need Help??


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:)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://794981]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2021-05-09 07:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (100 votes). Check out past polls.

    Notices?