Perl Monk, Perl Meditation | |
PerlMonks |
Use of uninitialized value in string comparison (cmp)by Random_Walk (Prior) |
on Sep 16, 2015 at 10:39 UTC ( [id://1142184]=perlquestion: print w/replies, xml ) | Need Help?? |
Random_Walk has asked for the wisdom of the Perl Monks concerning the following question: Good $localtime fellow monks
I get the same result if I deref it this way to: perl -wle '@r=({k=>"r"},{k=>"s"},{k=>"t"});print $_->{k} for sort { $$_{k} cmp $$_{k} } @r'Why does this happen, where is it finding unitialised values? and of course, how can I fix it? Cheers,
Pereant, qui ante nos nostra dixerunt!
Back to
Seekers of Perl Wisdom
|
|