in reply to Checking if line contains a quote
Is there some reason you're not using "use strict" and "use warnings"? They're very useful, and would point out the locations where you've neglected to create lexically-scoped variables with my. You may also want to rethink the use of leading '_' in your variable names, which typically have the connotation of being a program-internal variable. And finally, do you really want the clutter of comments like:while($_line1 =~ /"/) { ... $_extraLine1 =~ s/,//g;
and}# End the check to see if contained another quote.
in the code? It's pretty easy to see where the opening '{' for each of them are; all the more so if you indent prudently and don't add unhelpful comments to the mix.}# End while statement
|
|---|