Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: CPAN Testers command-line viewer

by tobyink (Abbot)
on Jun 27, 2012 at 15:00 UTC ( #978687=note: print w/ replies, xml ) Need Help??


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'


Comment on Re^2: CPAN Testers command-line viewer
Select or Download Code
Re^3: CPAN Testers command-line viewer
by toolic (Chancellor) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://978687]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2014-12-22 09:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (113 votes), past polls