Hello,
Thanks for all the help this list is providing,
Here is today's problem:
#!/usr/bin/perl
$test = "dave David Davy";
$i=0;
### Does not work.... want to count the number of matches...
$regex= ($test=~ s/(dav)/$i++ $1/eig);
print "$regex $i\n";
### This does work..
$regex= ($test=~ s/(dav)/$1 Smith/ig);
print "$regex\n";
__END__
It looks like $regex contains the number of matches,
what I wanted to was capture the modified string
Also can some provide an example of how to use the 'e' switch in
a regrex,
Thanks
Dave
----------------