in reply to Re: uninitialized string variable
in thread uninitialized string variable
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: uninitialized string variable
by jjw92 (Novice) on Aug 13, 2010 at 16:50 UTC | |
by suhailck (Friar) on Aug 13, 2010 at 17:57 UTC | |
by JavaFan (Canon) on Aug 13, 2010 at 18:17 UTC | |
by choroba (Cardinal) on Aug 13, 2010 at 22:04 UTC | |
by jjw92 (Novice) on Aug 13, 2010 at 22:21 UTC | |
by JavaFan (Canon) on Aug 14, 2010 at 07:40 UTC | |
by JediWizard (Deacon) on Aug 14, 2010 at 02:38 UTC |
In Section
Seekers of Perl Wisdom