in reply to Re: HTML entity write error
in thread HTML entity write error

What's Excel got to do with it? The OP didn't mention Excel at all.

Update: 2teez is also apparently talking about Excel. Perhaps the question has been altered at some stage, but the current question doesn't ask about Excel, and the code given doesn't generate an Excel spreadsheet.

use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name"

Replies are listed 'Best First'.
Re^3: HTML entity write error
by roboticus (Chancellor) on Aug 23, 2013 at 11:44 UTC

    tobyink:

    I saw Spreadsheet::Write and my mind immediately went to "Eh? Using a spreadsheet to create a CSV file?" and then the (truly horrible) memories surfaced. So while composing the note, I was thinking that Excel was used. My original point of using a module specifically for the task was on point, while my knee-jerk reaction to using a spreadsheet as a data transport medium was simply an added bonus. ;^)

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.

      Spreadsheet::Write actually uses Text::CSV to output CSV files anyway. Spreadsheet::Write just provides a slightly nicer interface, and more importantly allows you to use the same interface for writing either CSV or Excel files.

      FWIW, the reason I'm quite familiar with Spreadsheet::Write is because I forked it to create Spreadsheet::Wright which is a drop-in replacement that also supports OpenOffice, HTML, XHTML and JSON output (and has saner internals).

      use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name"
Re^3: HTML entity write error
by ww (Archbishop) on Aug 23, 2013 at 14:31 UTC
    Did you miss use Spreadsheet::Write; in the code at Ln4?

    Oops. Apologies.
    reminder to self: read on down thru the thread (branch) before replying.!