use YAML;

my $hash = { '/foo/foo- hate' => 'bz' };
print YAML::Dump ($hash);
print YAML::Dump (YAML::Load (YAML::Dump ($hash)));


syntax highlighted by Code2HTML, v. 0.9.1