in reply to Re^5: How do I reverse the order of the first and last word of a string?
in thread How do I reverse the order of the first and last word of a string?
I do understand the map part, but I don't really understand what it is supposed to remove ?map {s/[^a-z ]//gi} @words;
What exactly is the role of the ^, because I think thats the point where I loose it!!my $x = " aabbaaccaa " ; $x =~ s/[^a-z ]//g ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I reverse the order of the first and last word of a string?
by jonadab (Parson) on Mar 11, 2007 at 16:44 UTC | |
by jeanluca (Deacon) on Mar 11, 2007 at 17:05 UTC |