jedibadger has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone have a code sample that shows how to set the non-strict option for Text::xSV? The documentation says it exists, but the only keyword I can pass into it related to it is "strict". I've tried the following and still no love :(:

my $csvFile = Text::xSV->new( { strict => 'non_strict' } ); my $csvFile = Text::xSV->new( { strict => 0 } );

The error I keep getting is: Invalid argument 'HASH(0x2fecc98)', allowed args: (close_fh dont_quote error_handler fh filename filter header headers quote_all row row_size row_size_warning sep strict warning_handler) Help please!!!

Replies are listed 'Best First'.
Re: Setting non-strict option for Text::xSV
by Anonymous Monk on Jun 01, 2016 at 03:22 UTC
    new doesn't take hashrefs it takes a list  $ perl -MText::xSV -e " Text::xSV->new( strict => 0 ) "
Re: Setting non-strict option for Text::xSV
by BrowserUk (Patriarch) on Jun 01, 2016 at 03:13 UTC

    Use:

    my $csvFile = Text::xSV->new(); $csvFile->set_strict( 0 );

    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
    In the absence of evidence, opinion is indistinguishable from prejudice. Not understood.