Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: Problem with accessing hash Module::CoreList::version with $]by XooR (Beadle) |
on Apr 24, 2009 at 10:39 UTC ( [id://759789]=note: print w/replies, xml ) | Need Help?? |
betterworld sad:
Apparently, this special variable is only a string in perl 5.10, even though the documentation seems to suggest that it be a floating point number. If you use $]+0 in your example, it'll work (which is kind of strange because ordinary hash keys are converted to strings anyway, but in this case I think we are dealing with a tied hash).Thanx, that's solved it. I will read about tied hashes and see if this is a problem.
In Section
Seekers of Perl Wisdom
|
|