in reply to hash, deref & looping problem

Change all your %DataRatesHash->{} to $DataRatesHash{}.

%DataRatesHash-> is dereferencing a hash which is probably not what you want.

Update: Oops, look beyond the warnings to the actual result - you need to quote the numbers you are using as keys.


Perl is Huffman encoded by design.

Replies are listed 'Best First'.
Re^2: hash, deref & looping problem
by pg (Canon) on Oct 04, 2005 at 23:14 UTC

    That resolves the syntax warning, but it is not related to his issue.

    His issue is that, he thought there is a key "2.0" in his original hash, but there is not, there is a "2". Adding quotes to avoid convertion, should resolve that.