map { substr($_, 1, 1) = "foo" } qw(bar baz); #### grep { substr($_, 1, 1) = "foo" } qw(bar baz); #### foreach ( qw(foo) ) { $_ = 1 }