On Mon, 2003-02-24 at 23:45, Bruno Berteau wrote:
> Bonjour,

Bonjour Bruno,

$essai = "���";
$essai =~ y/���/cea/;
print "$essai\n";
eac

Tu place ce que tu veux dans y/liste/nouvelleliste/
(� la 'tr', correspondance un � un)

 
> Dans un script perl, j'utilise la commande suivante pour enlever les
> caract�res accentu�s et sp�ciaux d'une variable:
> 
> $OGG_FILE=`printf "$OGG_FILE" | tr "������������������������ @?:%,!"
> "aceeeeiioouuACEEEEIIOOUU_______"`
> 
> Mais �a ne donne pas le r�sultat souhait�:
> 
> Avec la OGG_FILE="� notre sant�" le r�sultat est "c_notre_sante"
> Avec "Couche tard et l�ve t�t" -> "couche_tard_et_live_tEt"
> et "D�p�che toi" donne "Depoche_toi"
> 
> Est-ce que l'un d'entre vous aurait une solution � me proposer ?
> 
> -- 
> Bruno Berteau
> 
> _______________________________________________________
> Linux Mailing List - http://www.unixtech.be
> Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
> Archives: http://www.mail-archive.com/[EMAIL PROTECTED]
> IRC: efnet.unixtech.be:6667 - #unixtech
-- 
------------------------------------------------------------
Dr Alain Empain  <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
      Bioinformatics, Molecular Genetics, 
      Fac. Med. Vet., University of Li�ge, Belgium
      Bd de Colonster, B43   B-4000 Li�ge (Sart-Tilman)
WORK: +32 4 366 3821  FAX: +32 4 366 4122
HOME: rue des Martyrs,7  B- 4550 Nandrin       
  +32 85 51 23 41  GSM: +32 497 70 17 64


_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/[EMAIL PROTECTED]
IRC: efnet.unixtech.be:6667 - #unixtech

Répondre à