Weblog entry #2 for carter
#2
hash as a reference is deprecated
Posted by carter on Wed 10 Jan 2007 at 16:14
I am a beginner at Perl and I am trying to get rid of "Using a hash as a reference is deprecated at" warning from the following code:
foreach $tab_ttc (@{%{$tab_h}->{$tab}->{TTC}})
Can anyone help?
foreach $tab_ttc (@{%{$tab_h}->{$tab}->{TTC}})
Can anyone help?
Comments on this Entry
Posted by Anonymous (213.164.xx.xx) on Wed 10 Jan 2007 at 16:20
I can't post the answer because a bayesian filter warning comes up.
Switch the hash to a dollar.
Switch the hash to a dollar.
[ Parent | Reply to this comment ]
I replay hash to a dollar sign and got the following "Not a SCALAR reference at"
[ Parent | Reply to this comment ]
Posted by figjam (222.154.xx.xx) on Tue 16 Jan 2007 at 22:01
[ Send Message | View figjam's Scratchpad | View Weblogs ]
[ Send Message | View figjam's Scratchpad | View Weblogs ]
Can you post some more of the code or a reference to where you got that piece of evil, so we can get some idea of what the contents actually are?
Cheers,
Cheers,
[ Parent | Reply to this comment ]