G'day viffer,
Some additional information would be helpful.
What is the format of your spreadsheet:
-
.xls: Use of Spreadsheet::ParseExcel suggests this; however, your code doesn't look like the documented code for that module.
For example, you have $cell->{Val} but the documented equivalent would appear to be $cell->value().
-
.xlsx: If so, Spreadsheet::XLSX would be a better choice of module. Curiously, your code does look like the documented code for this module, e.g. the documentation shows $cell->{Val} which mirrors your posted code.
-
.csv: Seems unlikely but $spreadsheet_csv in your code looks dubious.
It's somewhat unclear exactly what conversion is taking place.
Is your '• content' being converted to '" content', '"content"', or something else.
A link to a minimal sample of your input file, as well as showing us (a representative part of) the contents of @arr, would be useful.
The documentation for Spreadsheet::ParseExcel would suggest that $cell->unformatted() might be appropriate; however, the source code for that method shows:
sub unformatted {
my $self = shift;
return $self->{Val};
}
It's entirely possible that by ignoring the published interface, and circumventing the OO encapsulation, that you've caused some problem(s) which may be hard to track down.
Anyway, once you've supplied the information requested above, we may have a better idea.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.