good chemistry is complicated,
and a little bit messy -LW
extra spaces before \r\nby agustina_s (Sexton)
|on Mar 06, 2002 at 02:38 UTC||Need Help??|
agustina_s has asked for the
wisdom of the Perl Monks concerning the following question:
How to get rid of extra spaces before the input separator \r\n ?
I have a flat file input separated by \r\n.,
Sample input :
For a few input lines, there are extra spaces before the \r\n, for eg :
This cause trouble in my program even though I have check for extra spaces in my regex. This is part of my working program :
I use flag in case the item consists of more than one line. The entry is always quoted, so I use the " to check whether it is already the end of the item.
What should I do since it's not possible for me to check the input files and remove the extra spaces.
Thank you in advanced.