Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Value Pair Assignment

by Biker (Priest)
on Apr 18, 2002 at 07:38 UTC ( #160135=note: print w/ replies, xml ) Need Help??


in reply to Value Pair Assignment

This works:

use strict; my %hash; my $foo='xxx'; my $bar='yyy'; $hash{$foo}='foo-value'; $hash{$bar}='bar-value'; my($k,$v); while(($k,$v)=each %hash) { print("$k => $v\n"); }


Everything went worng, just as foreseen.


Comment on Re: Value Pair Assignment
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2015-07-07 08:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls