01.06.2013 Views

Formation Perl - Inra

Formation Perl - Inra

Formation Perl - Inra

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Scalaire - Fonctions<br />

Suppression du dernier caractère d’une chaîne :<br />

chop($scalaire);<br />

exemple : $mot = « sequences »; chop($mot);<br />

Résultat : $mot = « sequence »;<br />

Suppression du retour chariot à la fin de ligne :<br />

chomp($scalaire);<br />

Conversion en minuscules : lc($scalaire);<br />

Conversion en majuscules : uc($scalaire);<br />

Longueur : length($scalaire);

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!