Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    $hash{$_->[0]} = $_->[1] for [split /:/, $str, 2];
    
    print map {"$_:$hash{$_}\n"} keys %hash;
    
  2. or download this
    name:val with a :