Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: number of keys and values in a hash

by pvaldes (Chaplain)
on Oct 11, 2011 at 15:47 UTC ( #930847=note: print w/replies, xml ) Need Help??


in reply to Re^3: number of keys and values in a hash
in thread number of keys and values in a hash

Some extra notes about your code:

while (my ($keys, $values) = each %nums) {

is probably a little more readable than

while ((my $keys, my $values) = each (%nums)) {

and you could prefer also to use

open my $file, 'formal.xml'; instead: my $file;open $file, 'formal.xml');

and print "num: $number\n"; instead: print( "num: $number\n" );

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2022-01-25 12:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (66 votes). Check out past polls.

    Notices?