/e is a bit excessive here, isn't it? :) Also, you may want to only match against (\w) instead of (.). No reason to try to uppercase a funny character!
sub uclast ($) { my $foo = shift; $foo =~ s/(\w)$/\u$1/; return $foo; }
In reply to Re: Re: ucfirst(uclast(lc($user))) ?
by jryan
in thread ucfirst(uclast(lc($user))) ?
by nop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |