Subject:
|
Re: Perl question
|
Newsgroups:
|
lugnet.off-topic.geek
|
Date:
|
Tue, 5 Oct 1999 13:13:38 GMT
|
Viewed:
|
116 times
|
| |
| |
In lugnet.off-topic.geek, Jeremy Sproat writes:
> Try this:
>
> $string = lc $string;
Doh! I had no idea there was a function to do it already!
DaveE
|
|
Message is in Reply To:
| | Re: Perl question
|
| (...) Try this: $string = lc $string; Alternatively, I think this will work also: $string =~ tr/[A-Z]/[a-z]/; But if you *REALLY* want to make it look impressive (to a 1st-year programmer anyway :-), you could do: @upchars = qw( A B C D E F G H I J (...) (25 years ago, 4-Oct-99, to lugnet.off-topic.geek)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|