Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Trying to pass a hash of hash of lists

by tstock (Curate)
on Mar 14, 2002 at 01:59 UTC ( [id://151579]=note: print w/replies, xml ) Need Help??


in reply to Trying to pass a hash of hash of lists

  • AddWin9x(%win9x); # not AddWin9x{%win9x};
  • you probably want to pass the hash by reference though
    AddWin9x(\%win9x); # then extract the values inside the sub
  • on the last foreach you have { instead of ( also
  • next inside a sub seems like bad form to me


Tiago

Replies are listed 'Best First'.
Re: Re: Trying to pass a hash of hash of lists
by Marza (Vicar) on Mar 14, 2002 at 03:36 UTC

    Well that was dumb! Thanks! The second foreach was a typo for this post... Droped out the next. It bothered me everytime I looked at it and your comment motivated me. Have a good one!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-25 15:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found