Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: "Scalar found where operator expected", references

by dave_the_m (Monsignor)
on May 22, 2005 at 00:24 UTC ( [id://459289]=note: print w/replies, xml ) Need Help??


in reply to "Scalar found where operator expected", references

In addition to the missing comma, the following line is nonsense:
my %hash = $$hashref;
You can either make a complete copy of the hash by doing
my %hash = %$hashref;
or more efficiently, just delete that line and always directly use the hashref, eg
foreach my $key (keys %$hashref) { my $weight = $hashref->{$key}; ...

Dave.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found