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

Re^4: alphabet counting

by Not_a_Number (Prior)
on Jun 02, 2012 at 21:11 UTC ( [id://974056]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %h = ( a => 1, b => 2, c => 3 );
    print "$k => $h{$k}\n" for my $k (sort keys %h);
    
  2. or download this
    syntax error at D:\progs\perl\junk.pl line 5, near "$k ("
    Execution of D:\progs\perl\junk.pl aborted due to compilation errors.
    
  3. or download this
    for my $k ( sort keys %h ) {
      print "$k => $h{$k}\n";
    };
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2024-04-18 07:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found