Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting strings to uppercase
Message
General information
Forum:
Perl
Category:
Syntax & Programming
Miscellaneous
Thread ID:
00754565
Message ID:
00755818
Views:
15
>Hi Richard,
>
>You can use uc to convert strings to uppercase like:

Older versions of Perl doesn't have the uc() function. You'll have to use the translate method:
$test = "Hello";

print $test . "\n";

$test =~ tr/a-z/A-Z/;

print $test . "\n";
Should produce:
Hello
HELLO
- Erik Niese-Petersen

Crazy Dane in USA.
Previous
Reply
Map
View

Click here to load this message in the networking platform