in reply to Re^2: Can you explain me the output of this programme. especially in the subroutine func2
in thread Can you explain me the output of this programme. especially in the subroutine func2

That's one of the things the prototype does. If you specify (\@) then passing an array func1(@arr) is correct. Passing func1(\@arr) would actually fail the prototype check (as would suppling a list instead of an array). ikegami had to pass a reference because the prototype was removed.

Update: my reply overlapped with that of ikegami
  • Comment on Re^3: Can you explain me the output of this programme. especially in the subroutine func2
  • Select or Download Code

Replies are listed 'Best First'.
Re^4: Can you explain me the output of this programme. especially in the subroutine func2
by chromatic (Archbishop) on Nov 26, 2007 at 19:33 UTC
    Update: my reply overlapped with that of ikegami

    Why the update? Why apologize for posting correct information?