Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: Can you explain me the output of this programme. especially in the subroutine func2by atemon (Chaplain) |
on Nov 26, 2007 at 16:18 UTC ( [id://653021]=note: print w/replies, xml ) | Need Help?? |
SORRY !
Bug 6: sanketkathalkar, you are calling func1 & func2 as func1(@arr); and func2(@arr); where you pass array itself, instead of array reference. So when you shift the arguments, you are getting the first element, which is being printed.
In Section
Seekers of Perl Wisdom
|
|