Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^6: uninitialized string variable

by choroba (Cardinal)
on Aug 13, 2010 at 22:04 UTC ( [id://855011]=note: print w/replies, xml ) Need Help??


in reply to Re^5: uninitialized string variable
in thread uninitialized string variable

Isn't it the same as $data->[0]{data} I'd use?

Replies are listed 'Best First'.
Re^7: uninitialized string variable
by jjw92 (Novice) on Aug 13, 2010 at 22:21 UTC

    From what I have tried it is the same thing (if you put "data") That does look cleaner. I was just doing it the way I learned how to. I like the cleaned up look though. Thanks

Re^7: uninitialized string variable
by JavaFan (Canon) on Aug 14, 2010 at 07:40 UTC
    $data->[0]{data} and $$data[0]{data} are equivalent. And so is $data->[0]->{data}. Use whatever you prefer.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-18 22:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found