Paul wrote:

> 
> By the way, Harry -- don't use \1. Use $1.
> The backslashed version is only there for backwards compatibility, and
> I think it's deprecated.
> 

depends on how you use it, it's probably not just for backwards 
compatibility:

#!/usr/bin/perl -w
use strict;

my $string = '9999abcd9999';
if($string =~ /^(\d+)abcd\1/){
        print "matched\n";
}

__END__

prints:

matched

david

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to