push(@a, 'new element');Note that push() works in-place. So do NOT do this:
@a = push(@a, 'new element'); # WRONG, WRONG, WRONG
push(@a, 'new element');Note that push() works in-place. So do NOT do this:
@a = push(@a, 'new element'); # WRONG, WRONG, WRONG