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

Re^2: for loop error

by almut (Canon)
on Apr 13, 2010 at 11:37 UTC ( [id://834474]=note: print w/replies, xml ) Need Help??


in reply to Re: for loop error
in thread for loop error

I think the real problem here is the missing parens

foreach ( keys(%xhash) ) {

because of which Perl interprets keys as a variable name, and complains about the missing sigil...  —> use diagnostics;

Also, it should be %xhash, not $xhash.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-28 13:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found