http://www.perlmonks.org?node_id=983944


in reply to Re^3: Using regex to add a single backslash to escape quotes, instead of 2 backslashes or 0
in thread Using regex to add a single backslash to escape quotes, instead of 2 backslashes or 0

I needed to convert a CSV file to SQL format (it would be later imported with phpMyAdmin). At the time of conversion there was no database to connect to, but a $dbh can be only created with a connection to a DB.

Someone on StackOverflow suggested to use the above solution which works without a DB connection. ( http://stackoverflow.com/a/10458266 )
  • Comment on Re^4: Using regex to add a single backslash to escape quotes, instead of 2 backslashes or 0