Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Poor Man's Spreadsheet (was: Re: Spreadsheet::WriteExcel)

by Corion (Patriarch)
on Jan 23, 2002 at 18:35 UTC ( #140892=note: print w/replies, xml ) Need Help??

in reply to Spreadsheet::WriteExcel

Depending on your requirements, simple .csv files can also do parts of the job, as .csv files can also contain formulas. But there are certain pitfalls that have to be considered :

  • No Graphics, Links, fancy stuff
  • Different language/country settings make Excel behave differently in opening a file via the menu vs. opening a file via a double-click.
  • Embedded list-separators within cells will give you fun encoding.

Here is a small sample .csv file for an Excel setup that matches mine, that is, ; is the list separator, , is the number group separator and . is the decimal separator. This setup is nonstandard for a german setup, as the german list separator is ;, but the german decimal separator is , and the german number group separator is .. You might have to munge the example to suit your needs, and you might also have to open this file in Excel via the File->Open method instead of just double-clicking on the file.

"Cell A1";"Cell B1";"Cell C1" "Cell A2";"Cell B2";"Cell C2" 6;7;666 "Here comes a formula";=A3*B3;"This should be 42"
perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2022-09-26 10:20 GMT
Find Nodes?
    Voting Booth?
    I prefer my indexes to start at:

    Results (117 votes). Check out past polls.