> Message du 03/09/08 15:56 > De : "brian54321uk" > A : beginners@perl.org > Copie à : > Objet : substitute using directory name > > > Hi > I would like to replace a string of characters in a file to the name of > the directory it is in. > Thefore, in the example below, I would like to know how to replace "?" >
Hi, "?" is a meta-character in regex, you should escape it. s/\?/string/; Regards, Jeff. Créez votre adresse électronique [EMAIL PROTECTED] 1 Go d'espace de stockage, anti-spam et anti-virus intégrés.