in reply to Golf - now for the Sentencing.
Of course, the real-world case is not this simple. So? ;-)
I include a simple test harness, but otherwise follow your lead -- up to and including that trailing ";", with which my solution comes in at 25 strokes:
# Test: $_='there is more than one way to do it. beware sentences followed by anything other than a single " ". just another golfer.'; # 3456789 123456789 12345 s/^.|\bi\b|\.\s*./\U$&/g; # Proof: print;
The Sidhekin
print "Just another Perl ${\(trickster and hacker)},"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Golf - now for the Sentencing.
by redsquirrel (Hermit) on Apr 22, 2002 at 13:20 UTC | |
by Sidhekin (Priest) on Apr 23, 2002 at 08:47 UTC |