[Milan-pm] New note on page5notebook

Gianluca Casati casati_gianluca at yahoo.it
Thu Oct 7 01:25:56 PDT 2010


I would use more $DBI::errstr after a prepare, an execute or a connect. 
Something like


$dbh = DBI->connect( $NZ_SOURCE , $NZ_USER , $NZ_PASSWORD ) or die $log->abort(
$connect_error_message . $DBI::errstr );

other than that is a very comfortable approach, even if I prefere to keep 
queries in separate .sql files under a sql directory so other people that don't 
know Perl can edit them ( after that they accept the '?' special character :)

Bye,

see you the next meeting




________________________________
Da: marcos rebelo <oleber at gmail.com>
A: milan-pm at pm.org; nl-pm at amsterdam.pm.org; perl-recipes at googlegroups.com; 
perl at lisbon.pm.org; Perl Begginers <beginners at perl.org>
Inviato: Mar 5 ottobre 2010, 14:11:01
Oggetto: [Milan-pm] New note on page5notebook

Hi all

I did one more note at:

http://perl5notebook.oleber.com/objects/smart-selects-with-dynamic-response-to-undefiend-method-calls


One example of the use of AUTOLOAD, to do some SQL dinamically.

Comments are well come

Best Regards
Marcos Rebelo

-- 
Marcos Rebelo
http://oleber.freehostia.com
Milan Perl Mongers leader http://milan.pm.org
Webmaster of http://perl5notebook.oleber.com
_______________________________________________
Milan-pm mailing list
Milan-pm at pm.org
http://mail.pm.org/mailman/listinfo/milan-pm



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/milan-pm/attachments/20101007/9e4ad421/attachment.html>


More information about the Milan-pm mailing list