map {$_ += 100} @x; (yields same output and alters @x as does...) $_ += 100 for @x; in case you wondered... :)