Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by Corion (Pope)
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2020-06-03 08:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (21 votes). Check out past polls.

    Notices?