Re: formats and write()

2004-04-29 Thread John W. Krahn
Dani Pardo wrote: > > Hi, I've a question involving formats. > I have a text file that has lines like this: > > __LINE1__ > __LINE2__ > > I use s/__LINE(\d+)__/$line{$1}/ to change each of these lines by an > scalar that is stored in a hash, i.e: > > line{1}="CUSTOMER_NAME | PHONE

formats and write()

2004-04-29 Thread Dani Pardo
Hi, I've a question involving formats. I have a text file that has lines like this: __LINE1__ __LINE2__ I use s/__LINE(\d+)__/$line{$1}/ to change each of these lines by an scalar that is stored in a hash, i.e: line{1}="CUSTOMER_NAME | PHONE | EMAIL | COUNTRY"; But, as you may