John Doe: > Vincent Li: >> if (/$string/) { >> s/$_/#$_/; > > Eventually it is faster just to handle the beginning of the line > with s/^./#./
ITYM: s/^/#/ -- 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>