Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2016-10-28 00:45 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (373 votes). Check out past polls.