"David Romano" schreef:
> [ $pattern = '\w\s\w' ] > You also need to [...] escape the slashes for the pattern you're > using I don't think that is needed: (1) perl -le '$re = q{\w\s\w} ; print qr/$re/' (2) perl -le '$re = q{\\w\\s\\w} ; print qr/$re/' (on Windows you'll need to change the outer quotes to dquotes) Both will print: (?-xism:\w\s\w). Try also: perl -le 'print q{\\w\\s\\w}' perl -le 'print q{\w\s\w}' that both print: \w\s\w. -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>