Mark Stosberg wrote:
Once the maintenance stuff is out of the way, I'd like to add this
flourish of syntactic sugar:
$s = new CGI::Session( "driver:mysql", undef , { Handle => $dbh } );
Can be rewritten as:
$s = new CGI::Session($dbh);
The CGI::Session driver name will be intuited from the DBI driver name
in use.
Very, very nice :) Would (potentially) cut down on the list of open
database connections in my apps.
That, IMHO, would be a *lot* more intuitive. I'm probably being petty, I realize, but a little consistency goes a long way.Maybe it's not too late to have CGI::Session 4.x driver name mirror exactly the DBD ones. So the 'postgresql' driver becomes 'Pg'.
Jason
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.