package YAML::WIN32NewlineHack; use YAML; use Exporter; our @ISA = qw(Exporter YAML); # only covers scalar string input, but i think this should work sub Load { shift; s/\x0D\x0A/\n/g; Load($_); }