Keep It Simple, Stupid | |
PerlMonks |
Re^4: Regex with Backslashesby anita2R (Scribe) |
on May 18, 2020 at 20:20 UTC ( [id://11116916]=note: print w/replies, xml ) | Need Help?? |
The comma separated data is entered by a user and I want to keep it as simple as possible, so extra quoting is something I want to avoid. I felt that escaped commas and backslashes was just about OK, or two commas and two backslashes also just about OK, but the more complex it gets the harder it is for the user. I am happy to add extra load to the script to help the user. I have included some code to handle simple input errors such as a space inserted in a command: '-- text' instead of '--text'.
In Section
Seekers of Perl Wisdom
|
|