At the least you need a /s modifier...my $user = "Hello There, Trusting Programmer"; $user =~ s/^(.)(.*)(.)$/\u$1\L$2\E\u$3/; print $user;
In reply to Re (tilly) 1: ucfirst(uclast(lc($user))) ?
by tilly
in thread ucfirst(uclast(lc($user))) ?
by nop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |