Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting strings to uppercase
Message
Information générale
Forum:
Perl
Catégorie:
Syntaxe & Programmation
Divers
Thread ID:
00754565
Message ID:
00755818
Vues:
23
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform