Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my %values = map {/([^\t]+)\t(.*)/; $1 => $2} @strings;
    
    Dump (\%values);
    
  2. or download this
    $HASH1 = {
               key1 => 'value1',
               key2 => 'value2',
               key3 => 'value3'
             };