Very impressive. Thank you very much.
But what is the second "\s" for in: $s =~ s/[^\s]+\s(.*)/$1/;
I've also decided to implement a second loop, and this time drop off
the LAST word each time. Is there a better regexp than the below
(which seems to be working):
$s =~ s/(.*)[\$\s]+.+$/$1/;
Andy De Petter <> wrote in message news:<Xns943F6BDE93314adepetteskynetbe@195.238.3.1 80>...
> (Tony) wrote in news:c90e5468.0311260046.693d35c1
> @posting.google.com:
>
> > Is that possible?
>
> Everything is possible with perl. 
>
> my $s = "Different countries have different ideas. Merry Christmas to
> all.";
>
> while ($s =~ m/\s/) {
> print $s."\n";
> $s =~ s/[^\s]+\s(.*)/$1/;
> }