Using the /g modifier would be appropriate.  Consider using the /e modifier 
which causes perl to execute code in the "replace-with" part of the s///.

The following is from the Camel 3rd Ed, page 209:

s/(\d+)/$1 * 2/;  #Replaces "42" with "42 * 2"
s/(\d+)/$1 * 2/e; #Replaces "42" with "84"

Cheers,

Nathanael Kuipers


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

Reply via email to