Help for this page

Select Code to Download


  1. or download this
    $s = join('|',
       map { local $_=$_; s/\^/^1/g; s/\|/^2/g; $_ }
          %test_hash
    );
    
  2. or download this
    %test_hash =  map { local $_=$_; s/\^1/^/g; s/\^2/|/g; $_ }
       split(/\|/, $s);
    
  3. or download this
    use Data::Dumper ();
    
    ...
                       'lime' => 'green',
                       'junk2' => 'bla|bla'
                     };