in reply to trying to use join in a loop

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