Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

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


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

Sounds like a job for Template::Toolkit. I don't think it is a good idea though.


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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2014-08-22 02:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (145 votes), past polls