On 3/3/06, Ryan Gies <[EMAIL PROTECTED]> wrote:
>
> > for ($i=0;$i<=$#id;$i++) {
> >     $randomtext =~ s/$name[$i]/$name[$i] $id[$i]/g
> > }
>
> Putting the word-break identifiers around your search text will prevent
> "J Smithers" from getting replaced when the $i for "J Smith" comes around.
>
>     $randomtext =~ s/\b$name[$i]\b/$name[$i] $id[$i]/g
>

Thanks..

Any hint on the J Smith and J Smith Thomas ??

Ash


--
Ash Varma
[EMAIL PROTECTED]
[EMAIL PROTECTED]

The browser you can trust! Get Firefox and rediscover the web!
http://www.getfirefox.com/

Reply via email to