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

Re: Problem with accessing hash Module::CoreList::version with $]

by Anonymous Monk
on Apr 24, 2009 at 10:02 UTC ( [id://759774]=note: print w/replies, xml ) Need Help??


in reply to Problem with accessing hash Module::CoreList::version with $]

How are you comparing? Visually? That is a bad idea ;)
#!/usr/bin/perl use strict; use warnings; use Module::CoreList; print qq{ $Module::CoreList::version{ $] } $Module::CoreList::version{ "$]" } $Module::CoreList::version{ 5.010000 } }; __END__ HASH(0x1a97888) HASH(0x1a97888) HASH(0x1a97888)
See how they all reference the same hash? They're all the same
pmvers Module::CoreList 2.17

Replies are listed 'Best First'.
Re^2: Problem with accessing hash Module::CoreList::version with $]
by betterworld (Curate) on Apr 24, 2009 at 10:27 UTC

    If I run your script with 5.8.8, I get the output

    HASH(0x96574a4) HASH(0x96574a4) HASH(0x9628550)

    For 5.10.0, I get

    Use of uninitialized value within %Module::CoreList::version in concat +enation (.) or string at test.pl line 7. Use of uninitialized value in concatenation (.) or string at test.pl l +ine 7. HASH(0x84c82b8)

    Module::CoreList is version 2.15.

    Update: For the 5.10.0 case, Module::CoreList's version is 2.13.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-20 11:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found