On Aug 10, Rizwan Majeed said:
>It is known that passing a list by value to a function does not make
>visible to the calling function changes made to the list.
>
>But I dont understand how does the push() function works. Push takes
>the value of a list and still makes visible to the calling block
On Fri, Aug 10, 2001 at 10:42:32AM +0500, Rizwan Majeed wrote:
> It is known that passing a list by value to a function does not make
> visible to the calling function changes made to the list.
That isn't necessarily true. The code:
sub my_push (\@@) { push(@{ $_[0] }, @_[1 .. $#_]) }