Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://160135]
help
Chatterbox?
[Corion]: choroba: Well, it should be faster since it exploits that it only has to sort much smaller lists :)
[Corion]: Also, it outputs (partial) results much earlier, which is nice too :)
[choroba]: I hope it's ok , there's just no reaction from the OP

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2018-02-22 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (289 votes). Check out past polls.

    Notices?