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


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

Replies are listed 'Best First'.
Re^3: What is the best way to compare variables so that different types are non-equal?
by BrowserUk (Patriarch) 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.