sub myFunction { for (@_) { ... # lvalue; Note this impacts the passed values!! } } myFunction($myArg);