#!/usr/bin/perl use warnings; use strict; $\ = $/; @_ = ('a' .. 'b'); print for (@_) x= 2; #### Can't modify array dereference in repeat (x) ... Execution of arrX2.pl aborted due to compilation errors. #### #!/usr/bin/perl use warnings; use strict; $\ = $/; print for (@_ = ('a' .. 'b')) x= 2; #### 2 2 #### #!/usr/bin/perl use warnings; use strict; $\ = $/; (@_ = ('a' .. 'b')) x= 2; print for @_; #### a b