in reply to Re^2: regular expression issue
in thread regular expression issue

In a double-quoted string, the sequence  "\b" is a backspace control code. See following examples in double- and single-quoted strings.

perl -wMstrict -e "my $s = qq(abcdX\befg); print $s" abcdefg perl -wMstrict -e "my $s = qq(abcdX \befg); print $s" abcdXefg perl -wMstrict -e "my $s = q(abcdX\befg); print $s" abcdX\befg perl -wMstrict -e "my $s = q(abcdX \befg); print $s" abcdX \befg

See Quote and Quote like Operators in perlop.

Replies are listed 'Best First'.
Re^4: regular expression issue
by sumesh.sasi (Initiate) on Jun 06, 2008 at 11:34 UTC
    Thanks, Thats perfect. Good to know that difference.I was using the double quoted string, that causes the problem Thanks alot