Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re4: A most obscure bug

by blakem (Monsignor)
on Dec 20, 2001 at 00:32 UTC ( #133257=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: A most obscure bug
in thread A most obscure bug

Interestingly, your warning is still in effect. The only way I can throw it is through this bug:

# OK, gets implied defined(), no warning, correct output % perl -lwe 'print while glob("{dog,cat,0,pig,cow}")' dog cat 0 pig cow # Buggy, no implied defined(), throws warning and misbehaves % perl -lwe 'print while $_ = glob("{dog,cat,0,pig,cow}")' Value of glob construct can be "0"; test with defined() at -e line 1 +. dog cat

-Blake


Comment on Re4: A most obscure bug
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2015-07-31 01:36 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 (274 votes), past polls