in reply to Re^2: shift @ARGV not working
in thread shift @ARGV not working

Also, the OP did "shift before setting $argument", because the assignment is processed from right to left.