http://www.perlmonks.org?node_id=978687


in reply to Re: CPAN Testers command-line viewer
in thread CPAN Testers command-line viewer

Are you perhaps using a fairly ancient version of YAML::XS?

What's the output of this?

perl -MYAML::Any -E'say YAML::Any->implementation, q( ), YAML::Any->im +plementation->VERSION'

Mine is YAML::XS 0.38.

I suppose this is the downside of YAML::Any. :-(

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Replies are listed 'Best First'.
Re^3: CPAN Testers command-line viewer
by toolic (Bishop) on Jun 27, 2012 at 15:10 UTC
    Mine is older than yours:
    perl -MYAML::Any -E'say YAML::Any->implementation, q( ), YAML::Any->im +plementation->VERSION' YAML::XS 0.34

    Does that qualify as ancient?

    The first thing I did when I saw my error message was to check the version of YAML::Any which was installed. Since it was older than CPAN (0.72 vs. 0.81), I updated it:

    cpan YAML::Any

    This apparently only updates the pure Perl code in the distribution (unless I answered prompts wrong, if there were any... I don't remember). This is what I get:

    perl -MYAML::Any -E'say YAML::Any->VERSION' 0.81

    So, how do I get the latest YAML::XS?

      Pre-0.21 would have been too old, but 0.34 seems fine. YAML::XS is part of the YAML-LibYAML distribution.

      But anyhoo, I've now swapped to JSON, so no more hassle.

      perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

        The change to JSON fixed it for me too. BTW, I had 0.81 of YAML already.

      YAML::XS 0.34
      You should upgrade, this one is heavily leaking memory. rt://46172