Subject: | Spaces in Writer.pm |
Date: | Fri, 21 Dec 2007 16:00:57 +0100 |
To: | <bug-Data-YAML [...] rt.cpan.org> |
From: | "Meindertsma-Leopold" <m.s.meindertsma [...] worldonline.nl> |
Hi,
This concerns Data-YAML-0.0.5, the Writer.pm module.
my $ESCAPE_CHAR = qr{ [ \x00-\x1f \" ] }x will find spaces too, as the x modifier doesn't neutralize the spaces between the square brackets (Perl v.5.8.8 for MSWin32-x86-multi-thread). Consequence: strings containing a space are double-quoted by _enc_scalar. I think the intention was to single-quote them (last if statement in _enc_scalar). Not a very serious affair, but nevertheless...
Greetings,
Meindert Meindertsma.