Gurus
I have a file in this format -
field1 field2
I am substituting the spaces for commas and then doing a foreach splitting on the comma - great -
But I have just found that the first field can be of differing lengths hence the number of commas inserted will change
eg - after the substitution
field1,,,,,,,,,,field2
f1,,,,,,,,,,,,,,field1
etc ...
Is Text::CSV the way to go ?
cheers guys
Rab
I have a file in this format -
field1 field2
I am substituting the spaces for commas and then doing a foreach splitting on the comma - great -
But I have just found that the first field can be of differing lengths hence the number of commas inserted will change
eg - after the substitution
field1,,,,,,,,,,field2
f1,,,,,,,,,,,,,,field1
etc ...
Is Text::CSV the way to go ?
cheers guys
Rab