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

Re: Strange behaviour when using glob in if condition

by haukex (Archbishop)
on Apr 11, 2017 at 18:02 UTC ( [id://1187675]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ touch foo bar
    $ perl -MData::Dump -e '
    ...
      dd myglob($_) for qw/foo bar/   '
    "foo"
    undef
    
  2. or download this
    return if ()=glob("$directory/*");
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-17 06:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found