Re: Substituting a space with a comma

2003-07-11 Thread deb
Thanks! I "get it" now! deb At 21:37:06, on 07.10.03: Cracks in my tinfoil beanie allowed Rob Dixon to seep these bits into my brain:, > Deb wrote: > > Rob, you were very helpful in showing me how the split and join > > work, but > > since I wasn't looking to change anything in $line except to >

Re: Substituting a space with a comma

2003-07-10 Thread Rob Dixon
Deb wrote: > Rob, you were very helpful in showing me how the split and join > work, but > since I wasn't looking to change anything in $line except to > replace the character separating the email addrs, I used what you > gave me, and rebuilt > the $line. I think it's kinda ugly, though, and I'm w

Re: Substituting a space with a comma

2003-07-10 Thread deb
Rob, you were very helpful in showing me how the split and join work, but since I wasn't looking to change anything in $line except to replace the character separating the email addrs, I used what you gave me, and rebuilt the $line. I think it's kinda ugly, though, and I'm wondering if there is a

Re: Substituting a space with a comma

2003-07-10 Thread deb
No problem, Charles. :-) Thanks for responding, though! deb At 19:34:15, on 07.09.03: Cracks in my tinfoil beanie allowed Charles K. Clarkson to seep these bits into my brain:, > [snipped code] > > Holy Cow! > > Deb, I apologize. After reading Rob's answer, I > re-read your message a

RE: Substituting a space with a comma

2003-07-09 Thread Charles K. Clarkson
Rob Dixon <[EMAIL PROTECTED]> wrote: : : Deb wrote: : > : > I'm having trouble coming up with a regular : > expression for $lines in @lines of this form: : > : > units = [EMAIL PROTECTED] [EMAIL PROTECTED]:[EMAIL PROTECTED] : > units = [EMAIL PROTECTED] : > units = [EMAIL PROTECTED]

Re: Substituting a space with a comma

2003-07-09 Thread Rob Dixon
deb wrote: > Rob, > >Errr, I think I see this. Seems more elegant than a strict > search/replace. But, I don't understand this: > > next unless $line =~ s/^units\s+=\s+//; > > Substituting the left side with nothing? I must be reading this > wrong. > > I do understand the split and join,

Re: Substituting a space with a comma

2003-07-09 Thread Rob Dixon
Deb wrote: > Rob, > >Errr, I think I see this. Seems more elegant than a strict > search/replace. But, I don't understand this: > > next unless $line =~ s/^units\s+=\s+//; > > Substituting the left side with nothing? I must be reading this > wrong. > > I do understand the split and join, tho

Re: Substituting a space with a comma

2003-07-09 Thread deb
Rob, Errr, I think I see this. Seems more elegant than a strict search/replace. But, I don't understand this: next unless $line =~ s/^units\s+=\s+//; Substituting the left side with nothing? I must be reading this wrong. I do understand the split and join, though - I've used spl

Re: Substituting a space with a comma

2003-07-09 Thread John W. Krahn
Deb wrote: > > Hi, > > I'm having trouble coming up with a regular expression for $lines in @lines > of this form: > > units = [EMAIL PROTECTED] [EMAIL PROTECTED]:[EMAIL PROTECTED] > units = [EMAIL PROTECTED] > units = [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: Substituting a space with a comma

2003-07-09 Thread Rob Dixon
Charles K. Clarkson wrote: > deb <[EMAIL PROTECTED]> wrote: > > > > foreach my $line (@lines) { > > What's in @lines? Show us an example. I thought Deb told us: Deb wrote: > in @lines of this form: > > units = [EMAIL PROTECTED] [EMAIL PROTECTED]:[EMAIL PROTECTED] > units =

Re: Substituting a space with a comma

2003-07-09 Thread Rob Dixon
Deb wrote: > Hi, > > I'm having trouble coming up with a regular expression for $lines > in @lines of this form: > > units = [EMAIL PROTECTED] [EMAIL PROTECTED]:[EMAIL PROTECTED] > units = [EMAIL PROTECTED] > units = [EMAIL PROTECTED] [EMAIL PROTECTED] > >

RE: Substituting a space with a comma

2003-07-09 Thread wiggins
On Wed, 9 Jul 2003 16:38:36 -0500, "Charles K. Clarkson" <[EMAIL PROTECTED]> wrote: > deb <[EMAIL PROTECTED]> wrote: > : > : foreach my $line (@lines) { > > What's in @lines? Show us an example. > > > : The part I'm having trouble with is re

RE: Substituting a space with a comma

2003-07-09 Thread Charles K. Clarkson
deb <[EMAIL PROTECTED]> wrote: : : foreach my $line (@lines) { What's in @lines? Show us an example. : The part I'm having trouble with is replacing the : space(s) between the addresses. I don't want to : touch any other whitespace. Only the space or : spaces which might separate more tha

Substituting a space with a comma

2003-07-09 Thread deb
Hi, I'm having trouble coming up with a regular expression for $lines in @lines of this form: units = [EMAIL PROTECTED] [EMAIL PROTECTED]:[EMAIL PROTECTED] units = [EMAIL PROTECTED] units = [EMAIL PROTECTED] [EMAIL PROTECTED] ' ^units = ' is expected, a

Substituting a space with a comma

2003-07-09 Thread deb
Hi, I'm having trouble coming up with a regular expression for $lines in @lines of this form: units = [EMAIL PROTECTED] [EMAIL PROTECTED]:[EMAIL PROTECTED] units = [EMAIL PROTECTED] units = [EMAIL PROTECTED] [EMAIL PROTECTED] ' ^units = ' is expected,