in reply to testing files for valid content

Why not use Text::xSV ?

Using it would have additional benefit of simplifying your code :D

A user level that continues to overstate my experience :-))

Replies are listed 'Best First'.
Re^2: testing files for valid content
by grashoper (Monk) on Apr 23, 2009 at 17:00 UTC
    what would this do if a line did not contain a complete record? I am looking at text xSV but I am not sure how to use it. I find the usage examples very confusing for some of these modules. I read it I just don't understand what it means.
      It's behaviour is, AFAIR, configurable, but by default I think (and perldoc suggests that) it confesses.

      Thus you can either override the default error handling behaviour or possibly use eval (or more elegantly, but less acceptably, Error) to catch the error and process accordingly.

      A user level that continues to overstate my experience :-))