Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: C magic also working with glob(): intentional or not?

by chester (Hermit)
on Sep 27, 2005 at 17:38 UTC ( #495476=note: print w/replies, xml ) Need Help??


in reply to C<while> magic also working with glob(): intentional or not?

It appears to add a defined even without angle brackets, if you use glob(). I don't know if this means anything.

> perl -MO=Deparse -e "while(glob('*')){ print }" use File::Glob (); while (defined($_ = glob('*'))) { print $_; } -e syntax OK

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2016-09-28 19:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (538 votes). Check out past polls.