Hi Olaf,
Yes, I think so:
Show quoted textcpan> i YAML::Tiny
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Mon, 20 Dec 2010 01:36:13 GMT
Strange distribution name [YAML::Tiny]
Module id = YAML::Tiny
CPAN_USERID ADAMK (Adam Kennedy <adamk@cpan.org>)
CPAN_VERSION 1.46
CPAN_FILE A/AD/ADAMK/YAML-Tiny-1.46.tar.gz
MANPAGE YAML::Tiny - Read/Write YAML files with as little code as possible
INST_FILE /usr/lib/perl5/site_perl/5.8.8/YAML/Tiny.pm
INST_VERSION 1.46
I was able to load the file using the full YAML module.
All the best.
Duncan
Show quoted text-----Original Message-----
From: Olaf Alders via RT [mailto:bug-HTTP-BrowserDetect@rt.cpan.org]
Sent: 20 December 2010 17:24
To: Duncan Garland
Subject: [rt.cpan.org #64081] HTTP::BrowserDetect
<URL:
https://rt.cpan.org/Ticket/Display.html?id=64081 >
On Mon Dec 20 11:02:10 2010, Duncan.Garland@motortrak.com wrote:
> Hi,
>
> I can't get this to load from CPAN. It throws a fatal error in one of
> the tests:
>
> t/01-detect.t ............. 1/? Failed to load YAML document from
> '/root/.cpan/build/HTTP-BrowserDetect-1.20/t/useragents.yaml' at t/01-
> detect.t line 12
>
>
> perl -I lib -d t/01-detect.t
>
> DB<6> p YAML::Tiny->errstr
> YAML::Tiny found illegal characters in plain scalar: 'RealPlayer
> version 10, Mac OS X: Mozilla/5.0 (Macintosh; U; Intel Mac OS X
> 10_6_2; en-us) AppleWebKit/531.9 (KHTML, like Gecko)
> RealPlayer/10.1.0.503'
>
> Going to install force and keep my fingers crossed.
>
> Regards
>
> Duncan Garland
Hi Duncan,
That's just an issue with the tests. The module should be fine in
production as YAML::Tiny is never used outside of the test suite. I'll
have a look at it. Maybe switch to a JSON config.
Do you have the latest version of YAML::Tiny?
Best,
Olaf