Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > How do I dynami...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 10794 of 11948
Post > Topic >>

How do I dynamically adjust to CSV format?

by wix@[EMAIL PROTECTED] (Dennis G. Wicks) Mar 25, 2008 at 08:22 PM

Greetings,

I get data in CSV files from several different sites 
and I can't get the date/time formats to be consistent, 
let alone have the fields arranged in the same order.

I can put in the field/column names by hand in a first 
record but I can't find hoe to go about using them to 
change my split operation to get the info from the 
right place depending on the first record that I will 
add to the file.

eg. one file will have columns name,title,phone, 
snail-mail-addr,email while another file will have 
name,email,phone,title. I can certainly change the perl 
program, but as often as I would have to change it the 
failure rate woould be pretty high!

I am certain there is some sneaky perl trick that will 
accomplish this, but I haven't been able to find it!

Many TIA!
Dennis
 




 6 Posts in Topic:
How do I dynamically adjust to CSV format?
wix@[EMAIL PROTECTED] (D  2008-03-25 20:22:44 
Re: How do I dynamically adjust to CSV format?
yitzle@[EMAIL PROTECTED]   2008-03-25 21:44:27 
Re: How do I dynamically adjust to CSV format?
chas.owens@[EMAIL PROTECT  2008-03-25 21:50:00 
Re: How do I dynamically adjust to CSV format?
wix@[EMAIL PROTECTED] (D  2008-03-26 09:17:29 
Re: How do I dynamically adjust to CSV format?
kenslaterpa@[EMAIL PROTEC  2008-03-26 09:59:33 
Re: How do I dynamically adjust to CSV format?
daggerquill@[EMAIL PROTEC  2008-03-26 16:32:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 7 16:17:57 CDT 2008.