Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: right use of a hash table

by philcrow (Priest)
on Jul 19, 2007 at 15:24 UTC ( #627541=note: print w/replies, xml ) Need Help??


in reply to right use of a hash table

When you refer to an element of a hash you say $hash_name{'key'}, but to refer to the whole hash you must say %hash_name. So change your mys:
my %M4; my %M4_compteur;
Phil
The Gantry Web Framework Book is now available.

Replies are listed 'Best First'.
Re^2: right use of a hash table
by steph_bow (Pilgrim) on Jul 19, 2007 at 15:52 UTC
    Thanks a lot for your advice. It works now !

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://627541]
help
Chatterbox?
[marto]: meh, that's the last time I reply to finddata, I don't see an improvement in attitude or approach
Discipulus there are none so deaf as those who will not hear..
Discipulus who do not want to ear
[Corion]: marto: No, I haven't seen anything either and I'm not sure if learning-by- osmosis will work here
[marto]: I've experienced the behavior LanX described, outsourcing really opens your eyes to the situation :)
[Discipulus]: ;=)

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2017-03-30 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (353 votes). Check out past polls.