Skip Menu |

This queue is for tickets about the YAML-Tiny CPAN distribution.

Report information
The Basics
Id: 45791
Status: resolved
Worked: 10 min
Priority: 0/
Queue: YAML-Tiny

People
Owner: jkeenan [...] cpan.org
Requestors: rkrimen [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.36
Fixed in: (no value)



Subject: Trailing newline throws off (empty) map parsing
The following will throw an error because of the newline at the end: perl -MYAML::Tiny -e 'warn YAML::Tiny->new->read_string( "{}\n" )' Bad or unsupported hash line at /usr/local/share/perl/5.10.0/YAML/Tiny.pm line 279.
On Wed May 06 16:02:40 2009, RKRIMEN wrote: Show quoted text
> The following will throw an error because of the newline at the end: > > perl -MYAML::Tiny -e 'warn YAML::Tiny->new->read_string( "{}\n" )' > > Bad or unsupported hash line at > /usr/local/share/perl/5.10.0/YAML/Tiny.pm line 279.
It appears the error is no longer being thrown. See attachment. I will close the ticket within 7 days unless there is significant objection. Thank you very much. Jim Keenan
Subject: 45791-newline.pl
#!/usr/local/bin/perl use strict; use warnings; use 5.010_001; use Data::Dumper;$Data::Dumper::Indent=1; use Carp; use YAML::Tiny; my $y = YAML::Tiny->new->read_string( "{}\n" ); say Dumper $y;
On Fri Sep 27 23:14:20 2013, JKEENAN wrote: Show quoted text
> On Wed May 06 16:02:40 2009, RKRIMEN wrote:
> > The following will throw an error because of the newline at the end: > > > > perl -MYAML::Tiny -e 'warn YAML::Tiny->new->read_string( "{}\n" )' > > > > Bad or unsupported hash line at > > /usr/local/share/perl/5.10.0/YAML/Tiny.pm line 279.
> > It appears the error is no longer being thrown. See attachment. > > I will close the ticket within 7 days unless there is significant objection. > > Thank you very much. > Jim Keenan
No objection raised, hence, closing as per schedule.