dominix has asked for the wisdom of the Perl Monks concerning the following question:
if I replay it I've got plainty more linesperl -le "print join ' ', map{ucfirst} split / /, 'toto fait du velo' +" Toto Fait Du Velo ... sound like what I expected ... perl -MO=Deparse -le "print join ' ', map{ucfirst} split / /, 'toto fa +it du velo' " BEGIN { $/ = "\n"; $\ = "\n"; } print join(' ', map({ucfirst $_;} split(/ /, 'toto fait du velo', 0))) +; -e syntax OK perl -le "print join(' ', map({ucfirst $_;} split(/ /, 'toto fait du v +elo', 0)));" Toto Fait Du Velo Toto Fait Du Velo Toto Fait Du Velo Toto Fait Du Velo 1 1 1 1
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: ucfirst strangeness
by PodMaster (Abbot) on Nov 01, 2004 at 10:04 UTC | |
by dominix (Deacon) on Nov 01, 2004 at 10:35 UTC |