Venerd́, 27 Dic 2002, alle 20:11 Europe/Rome, Dan Muey ha scritto:

Have you tried doing the regex without the vars?
s/(name1|name2)/(surname1|surname2)/g;
Does that do what you want?
I'd prefer do not do it in this way, because I don't know how many (and what kind of) $originals and $news I'll have.
My aim is to create a regexp to extract by another file the lists and to use them in this script.


This may work, try :

{
s/$original/$new/g;
print;
}

oooh! It's always the same thing: when there's a better way to do something it's always the simplier too.

all'adr


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to