From: Dimitri Aivaliotis Date: 2006-04-07T05:36:49+09:00 Subject: Re: Basic input/output question On 4/6/06, Peter Bailey wrote: > Cool. Thanks! So, in James' example, he uses "sub" instead of "gsub." > Are they the same thing? "sub" will only replace the first occurrence of the pattern, whereas "gsub" will replace all occurrences of the pattern in that string. - Dimitri