Michalis has asked for the wisdom of the Perl Monks concerning the following question:
$string1='2000-02'; $string2='2000-2'; ($var1,$var2) = split(/-/,$string); ($var3,$var4) = split(/-/,$string); my %array = (1, 30, 2, 125);
Why is $array{$var2} undef and $array{$var4} == 125 while 2 == 02?
How can I come over it?
Thanks in advance for any answers
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Number notation
by Sifmole (Chaplain) on Jun 20, 2001 at 22:15 UTC | |
by Michalis (Pilgrim) on Jun 21, 2001 at 00:37 UTC | |
Re: Number notation
by srawls (Friar) on Jun 20, 2001 at 22:15 UTC | |
by Michalis (Pilgrim) on Jun 21, 2001 at 00:41 UTC | |
Re: Number notation
by VSarkiss (Monsignor) on Jun 21, 2001 at 00:01 UTC | |
by Michalis (Pilgrim) on Jun 21, 2001 at 00:33 UTC | |
Re: Number notation
by cLive ;-) (Prior) on Jun 20, 2001 at 22:18 UTC | |
by Sifmole (Chaplain) on Jun 20, 2001 at 22:21 UTC |