Keep It Simple, Stupid | |
PerlMonks |
Re^2: uninitialized string variableby JediWizard (Deacon) |
on Aug 13, 2010 at 16:41 UTC ( [id://854949]=note: print w/replies, xml ) | Need Help?? |
I'm not actually sure why you need the @ at all. I believe that what you probably want is $data[$i]->{"whatever"}. It looks to me as though the poster thinks that the @ is needed because @data is and array (native php coder?). The use of ->{"something"} tells me that $data[$i] contains a hashref, not an array ref. Even if $data[$i] was an array ref, you'd only need the @ to either a. dereference the array, or b. use an array slice. They say that time changes things, but you actually have to change them yourself. Andy Warhol
In Section
Seekers of Perl Wisdom
|
|