XooR has asked for the wisdom of the Perl Monks concerning the following question:
I don't understand why accessing hash with $] is different from accessing with it's value (in my case 5.010000)?#!/usr/bin/perl use strict; use warnings; use Module::CoreList; use Data::Dumper; print Dumper( $] ); # Prints "5.010000" on my version of perl print Dumper( $Module::CoreList::version{ $] } ); # Prints undef print Dumper( $Module::CoreList::version{ "$]" } ); # Prints undef print Dumper( $Module::CoreList::version{ 5.010000 } ); # Prints "correct" list ...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Problem with accessing hash Module::CoreList::version with $]
by betterworld (Curate) on Apr 24, 2009 at 09:57 UTC | |
by XooR (Beadle) on Apr 24, 2009 at 10:39 UTC | |
by Anonymous Monk on Apr 24, 2009 at 10:13 UTC | |
Re: Problem with accessing hash Module::CoreList::version with $]
by Anonymous Monk on Apr 24, 2009 at 10:02 UTC | |
by betterworld (Curate) on Apr 24, 2009 at 10:27 UTC | |
by Anonymous Monk on Apr 24, 2009 at 10:54 UTC |