On 11 3 , 11 47 , [EMAIL PROTECTED] (Jeff Pang) wrote: > > Not correct. > We generally pass or return a reference of hash,array,file/dir handle to or > from a subroutine. > We can only pass or return an object by its reference. > Reference is also a scalar, when passing or returning a scalar, you don't > need to use its reference. Passing or returning the scalar itself is good > enough.
Hi all, Thanks for the reply. To me, originally I just thought that Perl Object is just a special hash so it suffer the performance reason just like hash do, now I realize that Perl object must be passed by reference, good to know more. Thanks again. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/