Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: The future of Text::CSV_XS - TODO

by Tux (Monsignor)
on Jan 21, 2014 at 16:02 UTC ( #1071486=note: print w/ replies, xml ) Need Help??


in reply to The future of Text::CSV_XS - TODO

Twitter hinted me to implement RFC7111. See syntax below. If no (serious) objections, I will make a new release soon.

1.03 - 2014-01-21

  • Implement RCF7111
fragment This, for now experimental, function tries to implement RFC7111 + (URI Fragment Identifiers for the text/csv Media Type) 1) 1) http://tools.ietf.org/html/rfc7111 my $AoA = $csv->fragment ($io, $spec); In specifications, "*" is used to specify the last item, a dash + ("-") to indicate a range. All indices are 1-based: the first row or +column has index 1. Selections on row and column can be combined with +the semi-colon (";"). row row=4 row=5-7 row=6-* row=1-2;4;6-* col col=2 col=1-3 col=4-* col=1-2;4;7-* cell In cell-based selection, the comma (",") is used to pair row +and column cell=4,1 The range operator using cells can be used to define top-left + and bottom-right cell location cell=3,1-4,6 RFC7111 does not allow any combination of the three selection m +ethods. Passing an invalid fragment specification will croak and set er +ror 2014.

1.02 - 2013-09-25

  • Add example for reading only a single column
  • Don't store NULL in _ERROR_INPUT (RT#86217/Clone)
  • Prevent double-decode in csv-check
  • Add decode_utf8 attribute (default is true)

1.01 - 2013-06-16

  • Cache not re-read on getline_all (RT#86155)

Enjoy, Have FUN! H.Merijn


Comment on Re: The future of Text::CSV_XS - TODO
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1071486]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2014-12-27 09:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls