in reply to Regex doubt

You may want to quote the searched string on order not to bother with eascape chars:
$line = "TelecommuterTrac\WebIntHitList3"; # the whole text which contains the string: $text =~ s/\Q$line\E/country/;


Replies are listed 'Best First'.
Re^2: Regex doubt
by reasonablekeith (Deacon) on Jul 29, 2005 at 08:31 UTC
    I think you meant to put single quotes in that first line.
    ---
    my name's not Keith, and I'm not reasonable.
      I mean exactly \Q \E quoting in regex.