Help for this page

Select Code to Download


  1. or download this
    %new_hash = (split(/;/,$variable_with_keys_and_values));
    
  2. or download this
    %new_hash = (split(/;/,'apple;good;banana;good;citrus;good;no doughnut
    +;bad cop'));
    
    print $new_hash{'no doughnut'};