Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: How do I determine if a variable contains a type glob?by ikegami (Patriarch) |
on Dec 05, 2016 at 01:09 UTC ( [id://1177182]=note: print w/replies, xml ) | Need Help?? |
reftype(\$s) eq 'GLOB' will be true if and only if $s contains a glob.
reftype($s) eq 'GLOB' will be true if and only if $s contains a reference to a glob.
This is what open(my $fh, ...) places in $fh.
In Section
Seekers of Perl Wisdom
|
|