Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by zwon (Monsignor)
on Jul 02, 2012 at 15:22 UTC ( #979449=note: print w/ replies, xml ) Need Help??


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

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.


Comment on Re^3: Need to create a package from data from an excel file
Re^4: Need to create a package from data from an excel file
by CountZero (Bishop) on Jul 02, 2012 at 19:02 UTC
    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
Node Status?
node history
Node Type: note [id://979449]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2014-07-12 15:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (240 votes), past polls