LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   perl (https://www.linuxquestions.org/questions/linux-newbie-8/perl-4175424196/)

zahheb 08-27-2012 07:09 AM

perl
 
add ( abc => $x )


are we passing an element of an hash to this function called add

and

add ( abc => { cde => $y } )

and in this is abc a reference to an hash and are we passing that hash's particular element to the add function...


thanks

zahheb 08-27-2012 07:11 AM

and dont u think that we should use -> instead of => ???

thanks

pan64 08-27-2012 07:34 AM

see perl objects about it: http://perldoc.perl.org/perlootut.html


All times are GMT -5. The time now is 05:08 AM.