Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Spreadsheet::Read not reading CSV data passed as stringby 1nickt (Canon) |
on Jul 30, 2017 at 04:18 UTC ( [id://1196285]=perlquestion: print w/replies, xml ) | Need Help?? |
1nickt has asked for the wisdom of the Perl Monks concerning the following question: Greetings learned brethren, and special salutations to Brother Tux, to whom in particular I direct this plea for assistance. If I read the documentation for Spreadsheet::Read correctly, I should be able to pass a string containing CSV data as the sole or the first argument to ReadData(). While the SYNOPSIS does not show an example, the doc for the function does: ... and describes the function as "Tries to convert the given file, string, or stream ..." (emphasis added). But when I try to pass a string containing simple CSV data, I get an error. First, with parser option set as recommended in the doc: Also trying without the parser option: ( ... although, interestingly, when I try that from a file, I get an error, and different from the one obtained when using parser:
) FWIW I do have:
Thanks, o wise ones.
The way forward always starts with a minimal test.
Back to
Seekers of Perl Wisdom
|
|