> -----Original Message-----
> From: Dr.Ruud [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 16, 2007 3:57 PM
> To: beginners@perl.org
> Subject: Re: Overlapping substitution
> 
>
> If the first field can be just a dot too, consider this:
> 
>   s/ (\A|,) [.] (?=,|\z) /$1/xg 
      ^      ^   ^        ^
  
> (if you chomp first :) 


Thank you kindly for your response.  Are the spaces, which I highlighted
with carrots, the whitespace (or comment) allowed by the /x?  If so, is the
function of the () and [] to delineate the content?  How might it appear
without the /x?

What part of this is saved in $1?

Do you qualify the use of chomp since you used \z?



Thank you,

Kevin


Kevin Viel, PhD
Post-doctoral fellow
Department of Genetics
Southwest Foundation for Biomedical Research
San Antonio, TX 78227  


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to