Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^3: A CDMA problem

by juster (Friar)
on Nov 17, 2011 at 22:34 UTC ( #938692=note: print w/ replies, xml ) Need Help??

in reply to Re^2: A CDMA problem
in thread A CDMA problem

The error is pretty straightforward. That happens when you try to use a string as a hash reference. I.e.:

my $foo = 'bar'; $foo->{'key'} = 'value'; # or likely for my $k (values %{$foo}){ ... }

Just look at the line number specified and back-track from there. Use Data::Dumper or Data::Dump to ensure you have the values you are expecting (like a hashref instead of a string). Print them to screen alot, etc.

I know there is one typo where I used the wrong variable ($logpkt should be $fngpkt in one spot) and I think I might have used values() where I shouldn't have. Make sure you understand values. Make sure you understand references, read perlreftut for example.

Comment on Re^3: A CDMA problem
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://938692]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2015-11-29 04:56 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (746 votes), past polls