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