rycher has asked for the wisdom of the Perl Monks concerning the following question:
"create_stamp","username","first_name","last_name","name","name","exte +nsion","fax_flag","exchange","position","username" "2009-03-02 15:31:52","SimpsonH","Homer","Simpson","Nuclear Control Ce +nter","Radioctive Hall","6798","1","218 555","Nuclear Control Operato +r","BurnsM" "2009-03-02 15:31:52","SimpsonH","Homer","Simpson","Nuclear Control Ce +nter","Radioctive Hall","6793","0","218 555","Nuclear Control Operato +r","BurnsM"
I already have the data writing to a file in the following format, with the exception of the fax_flag/faxNumber, utilizing the Text::CSV module(print columnx, etc). What I'm getting stuck on is the part where the file gets read in, then equates the fax_flag with '1' and only writes the 'faxNumber' field to the line. The end result should look like this--
dn: uid=simpsonh givenName: Homer sn: Simpson department: Nuclear Control Center buildingName: Radioactive Hall telephoneNumber: 218 555-6793 faxNumber: 218 555-6798 title: Nuclear Control Operator manager: uid=burnsm
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Manipulating Data by a Field Identifier
by McDarren (Abbot) on May 04, 2009 at 01:51 UTC | |
by rycher (Acolyte) on May 04, 2009 at 01:57 UTC | |
by McDarren (Abbot) on May 04, 2009 at 02:20 UTC | |
by rycher (Acolyte) on May 04, 2009 at 04:25 UTC | |
| |
|
Re: Manipulating Data by a Field Identifier
by graff (Chancellor) on May 04, 2009 at 05:36 UTC | |
|
Re: Manipulating Data by a Field Identifier
by bichonfrise74 (Vicar) on May 05, 2009 at 01:02 UTC |