Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: printing hash produce errors

by bart (Canon)
on Jun 02, 2013 at 12:18 UTC ( #1036582=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %hash = ('perl' => 1 , 'C' => 0) ;
    
  2. or download this
    my $hash = {'perl' => 1 , 'C' => 0} ;
    foreach my $key(sort keys %$hash)
    ...
         print "$key : $hash->{$key} \n" ;
    
            }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2016-02-08 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (268 votes), past polls