G'day David,
You can use various features of Perl to write that very succinctly:
$ perl -E 'say "Name: @{[map ucfirst, split]}" while <>' billy bob allen Name: Billy Bob Allen abc pqr wxyz Name: Abc Pqr Wxyz
Features (some of which you probably already know about):
— Ken
In reply to Re: trying to use join in a loop
by kcott
in thread trying to use join in a loop
by lamasculo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |