in reply to Splitting/joining on different characters
Your first question ... I'd rewrite it as so:
At that point, @names has been modified in-place using aliasing.foreach my $name ( @names ) { my @n; foreach ( split ' ', $name ) { # Go through each item, push'ing onto @n } $name = join ' ', @n; }
|
|---|