Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: CPAN Testers command-line viewer

by toolic (Chancellor)
on Jun 27, 2012 at 12:43 UTC ( #978643=note: print w/ replies, xml ) Need Help??


in reply to CPAN Testers command-line viewer

I can't get this to work for me:

$ cpan-testers List-MoreUtils Undefined subroutine &YAML::XS::LoadFile called at /home/toolic/perl/l +ib/YAML/Any.pm line 93. $ cpan-testers List-MoreUtils-0.33 Undefined subroutine &YAML::XS::LoadFile called at /home/toolic/perl/l +ib/YAML/Any.pm line 93. $ cpan-testers List::MoreUtils Undefined subroutine &YAML::XS::LoadFile called at /home/toolic/perl/l +ib/YAML/Any.pm line 93.
Am I using it incorrectly?
$ perl -v This is perl 5, version 12, subversion 2 (v5.12.2) built for x86_64-li +nux


Comment on Re: CPAN Testers command-line viewer
Select or Download Code
Re^2: CPAN Testers command-line viewer
by mje (Deacon) on Jun 27, 2012 at 13:25 UTC

    Me neither:

    $ perl cpan_testers.pl DBI YAML Error: Stream does not end with newline character Code: YAML_PARSE_ERR_NO_FINAL_NEWLINE Line: 0 Document: 0 at /usr/local/share/perl/5.12.4/YAML/Loader.pm line 38

    using system Perl on Ubuntu which here is

    This is perl 5, version 12, subversion 4 (v5.12.4) built for i686-linu +x-gnu-thread-multi-64int (with 45 registered patches, see perl -V for more detail)
Re^2: CPAN Testers command-line viewer
by tobyink (Abbot) on Jun 27, 2012 at 15:00 UTC

    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'
      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'
        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://978643]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2014-08-31 09:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls