Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Need to create a package from data from an excel file

by CountZero (Bishop)
on Jul 02, 2012 at 13:10 UTC ( [id://979426]=note: print w/replies, xml ) Need Help??


in reply to Re: Need to create a package from data from an excel file
in thread Need to create a package from data from an excel file

Pray, Brother in Perl, enlighten us why it would not be a good idea?

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics

Replies are listed 'Best First'.
Re^3: Need to create a package from data from an excel file
by zwon (Abbot) on Jul 02, 2012 at 15:22 UTC
    Well, it's just a feeling that OP trying to do something that could be done simpler. What he will do with this module? Load it? Then what's the point writing it into a file? Why not just write module that loads data from Excel and uses it? Of course I don't know details, and perhaps this solution makes sense, but I have my doubts.
      There could be very good reasons.

      Take for example DBIx::Class::Schema::Loader. This module allows you to generate the necessary DBIx::Class class files either "in memory" or dump them to disk to be used later and thus saves you the effort and time of regenerating the classes, every time you run your DBIx::Class based application.

      Other example: I have an application that writes a LaTeX file based upon info in certain spreadsheets. Then the application starts the LaTeX compiler and transforms the LaTeX file into a well formatted PDF-file. I could have kept the whole LaTeX file "in-memory" and send it to the LaTeX compiler's STDIN. However, once in a while I need to do some fine-tuning to the LaTeX file and therefore I need a disk-file to edit.

      CountZero

      A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

      My blog: Imperial Deltronics

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-03-19 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found