Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    my %hash = split /[:,]\s*/, $str;
    
    print "$_: $hash{$_}\n" for sort keys %hash;
    
  2. or download this
    word1: 12345
    word2: true