sub foo {chop(@_=@_)} #### @a = ('ab','cd','ef'); print chop @a; # f print foo(@a); # b # the list assignment has the same effect here: print chop(@a=@a); # b #### sub foo {chop(@_=reverse @_)}
## @a = ('ab','cd','ef'); print chop @a; # f print foo(@a); # b # the list assignment has the same effect here: print chop(@a=@a); # b ##
## sub foo {chop(@_=reverse @_)}