On Tue, Oct 14, 2003 at 06:38:40PM -0400, Steve Grazzini wrote: > On Tue, Oct 14, 2003 at 03:59:16PM -0700, [EMAIL PROTECTED] wrote: > > Can someone shorten this upper routine? > > > > sub toUpper > > { my $z = shift; > > $z =~ tr/a-z/A-Z/; > > return $z; > > } > > sub to_upper { uc shift }
I should have pointed out: uc() isn't exactly equivalent to tr/a-z/A-Z/, but it's usually preferable, since uc() honors the locale. -- Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]