Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^4: alphabet counting

by Not_a_Number (Parson)
on Jun 02, 2012 at 21:11 UTC ( #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\ line 5, near "$k ("
    Execution of D:\progs\perl\ aborted due to compilation errors.
  3. or download this
    for my $k ( sort keys %h ) {
      print "$k => $h{$k}\n";

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://974056]
robby_dobby adds fortune cookies to the platter on the sideboard.
robby_dobby adds raisin cookies to the platter on the sideboard.
robby_dobby takes a handful of cookies from the platter on the sideboard.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2017-04-26 13:29 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (477 votes). Check out past polls.