Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: warning: tied vars may evaluate twice in logical expressions

by blakem (Monsignor)
on Sep 27, 2001 at 04:07 UTC ( [id://114965]=note: print w/replies, xml ) Need Help??


in reply to warning: tied vars may evaluate twice in logical expressions

merlyn mentioned what I believe to be a similar bug, while writing the code to one of his most recent articles. I don't think the article explaining this code is online yet, but it relates to traversing a file system.

To see the bug in action, save the code to something like tiefinder.pl. Uncomment the 'DEBUG: fetching' line and invoke something like ./tiefinder.pl /tmp You should notice the DEBUG line getting printed twice as often as you might expect.

I don't have an answer for you (and at the time, neither did merlyn) but perhaps this can help you zero in on the problem.

-Blake

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (1)
As of 2024-04-25 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found