Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my %hash = split /[;:]/, $string;
    
    print Dumper \%hash;
    
  2. or download this
    $VAR1 = {
        '1' => 'one',
        '3' => 'three',
        '2' => 'two'
        };