in reply to Re^3: How do I determine if a variable contains a type glob?
in thread How do I determine if a variable contains a type glob?

Why are you using a regular expression match, rather than string equality 'eq'?

ref( \$_[0] ) =~ m[GLOB]

Replies are listed 'Best First'.
Re^5: How do I determine if a variable contains a type glob?
by BrowserUk (Patriarch) on Dec 07, 2016 at 02:32 UTC

    Because it was typed straight into the website, and I was probably thinking about:

    print \*ARGV;; GLOB(0x28a860)

    when I typed it.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    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". The enemy of (IT) success is complexity.
    In the absence of evidence, opinion is indistinguishable from prejudice.