Hello Monks,
I am using DBD::CSV to manipulate a csv-file. However, I now find that I need to add a column to the file. As DBD::CSV or rather SQL::Statement::Syntax does not seem to support ALTER TABLE, I'll have to change the csv-file directly.
I could just split the lines on the delimeter and add an extra delimeter at the appropiate place, but I thought it would be more snazy to use a regular expression. However, I haven't been able to find out how to specify the nth occurence of something.
Can anyone point me in the right direction?
Thanks,
In reply to Replacing nth occurrence of string by loris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |