Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Recover a variable from a loop

by GrandFather (Saint)
on May 26, 2016 at 08:36 UTC ( [id://1164172]=note: print w/replies, xml ) Need Help??


in reply to Recover a variable from a loop

You use both $white-> and $white{...} (similarly for most of the other errors). The $white-> variant is using white as a scalar and the $white{...} variant is using white as a hash. You have either missed declaring the hash or, more likely, the second variant should be $white->{...}.

Because you haven't given enough context it is impossible for us to tell which way around the code should be.

The $diff_file error is fixed by prefixing the statement where it is assigned a value with my.

Premature optimization is the root of all job security

Replies are listed 'Best First'.
Re^2: Recover a variable from a loop
by Chaoui05 (Scribe) on May 26, 2016 at 09:08 UTC
    Oh ! It could be that, yes. I gave you all my sub . What does it miss for you ?
    Lost in translation

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-20 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found