Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 chanting in the Monastery: (7)
As of 2015-07-02 05:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (29 votes), past polls