Help for this page

Select Code to Download


  1. or download this
    $x =~ s/['\s+]//g;
    my %hash = split /[:,]/, $x;
    
  2. or download this
    $x =~ s/'\s*:\s*'/' => '/g;
    my %hash = %{ eval "{$x}" };