Guest User

Untitled

a guest
Jul 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. use strict;
  2. use warnings;
  3.  
  4. # キーと値を順に処理する
  5. my %hash = (a => 1, b => 2, c => 3);
  6.  
  7. foreach my $key (sort keys %hash) {
  8. print "$key => $hash{$key}\n";
  9. }
  10.  
  11. 1;
Add Comment
Please, Sign In to add comment