in reply to Regex doubt

Hi Prasanna.k

Use Single Quote in $line string

$line = 'this is TelecommuterTrac\WebIntHitList3'; $line=~s#\QTelecommuterTrac\WebIntHitList3\E#country#;

Or

$line = 'this is TelecommuterTrac\WebIntHitList3'; $findstr='TelecommuterTrac\WebIntHitList3'; $findstr=quotemeta($findstr); $line=~s#$findstr#country#;

Output will get:

this is country