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

Re: Runtime Hash Variable access

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


in reply to Runtime Hash Variable access

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

Print $ABCDev to see what happened. It was assigned only the 3. The qw operator evaluates to its last element when used in scalar context. You need to learn what a hash is before you can use one. Hashes are a very basic part of Perl and any tutorial or learning book covers them. I think you should read Beginning Perl or something like that. Or at least perlintro.

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-03-29 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found