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

Re^3: tt2 with perl cgi and a csv file

by stiller (Friar)
on Mar 27, 2008 at 20:44 UTC ( #676848=note: print w/replies, xml ) Need Help??

in reply to Re^2: tt2 with perl cgi and a csv file
in thread tt2 with perl cgi and a csv file

AoH is the Array (lines) of Hashes (fields).

Your Mother's answer below is very sound advice. If you have more than one script / template, time invested in learning a framework will pay back great. If you want to try that, I'd recomend strongly that you check out catalyst. The new book they advertise is very good (I've read it) if you like a stepwise and practical introduction. Otherwise they have lots of online tutorials and documentation if you prefer that.

If you don't want to go that route yet, try factor out the parsing of the csv data (take a look at Text::CSV_XS and DBD::CSV. The latter of these will make your csv file feel like a database, simplifying searching and paging. Also, pull together one coherent template by extracting the print statements from the code.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://676848]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2018-06-18 06:13 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (108 votes). Check out past polls.