Do you have a question? Post it now! No Registration Necessary. Now with pictures!
November 23, 2004, 10:08 am
rate this thread
Re: Two references !!!!!!
> I have a line of code as
> $myvar = $link -> getdata()-> getDir()
> I could not understand the use of two "->"
It's object-oriented Perl.
$link is an object reference. That object has an instance method
getdata() that returns another object. The object returned from
getdata() has an instance method called getDir(). The return value from
getDir() is stored in $myvar.
For more about OOP in Perl, see:
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org