in reply to use shift function in regex

Two problems.

I think you meant

perl -le'($var = shift) =~ s/(.*)/\u$1/s; print $var' hi

But why the crazyness?

perl -le'print uc(shift)'