|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re^3: WWW::Wordnik::API outputby greengaroo (Friar) |
| on Nov 20, 2012 at 19:43 UTC ( #1004782=note: print w/ replies, xml ) | Need Help?? |
|
I suggest you use strict; because you would have received an error instead of nothing. This:
Should be replace by this:
I was using a HashRef not a Hash, $hashref is not the same variable as %hashref, so if you loop through %hashref, of course you get nothing because it is an empty variable. Using strict would have prevent you from doing this. I hope this helps!
Testing never proves the absence of faults, it only shows their presence.
-- greengaroo
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||