I am parsing some website(s) to get some information list that I store into an array of strings. I need to generate .pm code where this list will be defined as a Perl variable. As such strings in the array may contain any ASCII character, I need to ensure that there would be no conflict with Perl syntax. What is the best and safest way to convert such array into Perl source code?
-
2And why does it need to be Perl source code, and not just a data file in a format like JSON or YAML you can slurp in safely in the future?Joe Z– Joe Z2013-12-03 14:21:17 +00:00Commented Dec 3, 2013 at 14:21
Add a comment
|