Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: C<while> 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


Comment on Re: C<while> magic also working with glob(): intentional or not?
Select or Download Code

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 taking refuge in the Monastery: (2)
As of 2014-10-26 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (152 votes), past polls