Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Runtime Hash Variable access

by Juerd (Abbot)
on Mar 08, 2004 at 14:23 UTC ( [id://334819]=note: print w/replies, xml ) Need Help??


in reply to Re: Runtime Hash Variable access
in thread Runtime Hash Variable access

%ABCDev = qw /A 1 B 2 C 3/;

Technically, that *defines* (assigns to) %ABCDev, but it doesn't *declare* it. You declare a variable with my, our or use vars.

Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

Replies are listed 'Best First'.
Re: Re: Re: Runtime Hash Variable access
by Hena (Friar) on Mar 09, 2004 at 09:07 UTC
    You are right. Mainly ment that the wanted hash %ABCDev was empty due that assingment happened to scalar and not hash. And that using 'use strict' and 'use warnings' would have caught the mistake.

    I just don't always think that much about words than meaning (which in some cases can be somewhat obscure due to my lack of attention to words :D).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-18 09:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found