Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: What is the best way to compare variables so that different types are non-equal?

by ikegami (Pope)
on Jul 19, 2009 at 16:10 UTC ( #781459=note: print w/ replies, xml ) Need Help??


in reply to Re: What is the best way to compare variables so that different types are non-equal?
in thread What is the best way to compare variables so that different types are non-equal?

I don't know why you crossed out "compiles".

>perl -Mre=debug -e"qr/a/" Compiling REx "a" Final program: 1: EXACT <a> (3) 3: END (0) anchored "a" at 0 (checking anchored isall) minlen 1 Freeing REx: "a"


Comment on Re^2: What is the best way to compare variables so that different types are non-equal?
Download Code
Re^3: What is the best way to compare variables so that different types are non-equal?
by BrowserUk (Pope) on Jul 19, 2009 at 16:21 UTC
    I don't know why you crossed out "compiles".

    Because the docs I quoted used the term 'normalises'. Can they be both compiled and normalised? Can they be normalised and not compiled or vice versa?


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

      Can they be both compiled and normalised?

      Yes. I didn't mean to imply what you said was wrong.

      Can they be normalised and not compiled or vice versa?

      No.

      qr// always compiles.

      qr// always returns the regex flags when used as as string.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2014-12-20 13:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls