HTML Template handling (2) The system I favor completely separates the HTML from the code.Was it necessary to write one? Does it offer anything not found in HTML::Template or HTML::Seamstress?
Perl is a flexible language with a powerful modular structure and very strong text handling ability.It certainly is, but this convenience and wealth of functionality in Perl has resulted in a decrease in ability to leverage the shell as well as a duplication of its functionality. Also, because so much is available within Perl, one tends to write modules to compentize complex apps instead of isolated shell scripts. The result is that large programs often have a huge memory overhead because modules cannot be unloaded after use. In contrast, Unix shell pipelines enter memory, do their job, then exit.
By forcing all access to the database through stored procedures you achieve: Data integrity
and then simply prepare a statement handle by loading the text file into a lexical variable and save main memory:/ecommerce/billing/monthly.sql /ecommerce/billing/yearly.sql /ecommerce/hosting/dnslookup.sql
my $sql = File->contents('/ecommerce/billing/yearly.sql'); my $sth = $dbh->prepare($sql); $sth->execute(@bind_var);
Table-Driven Database Calls (5) The perl subroutine has a configuration hash that defines all the inputs and outputs for the request. The configuration hash consists of several sections:
I saw nothing here via-a-vis password management. How would you handle different passwords for production and dev environments? Would your solution differ from DBIx::Connect? If so, why?
Carter's compass: I know I'm on the right track when by deleting something, I'm adding functionality
|
|---|