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.
ikegami fixed this in the code he posted.
In reply to Re^2: Can you explain me the output of this programme. especially in the subroutine func2
by atemon
in thread Can you explain me the output of this programme. especially in the subroutine func2
by sanketkathalkar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |