Re: DBIx::DBH - Perl extension for simplifying database connectio ns

2004-12-17 Thread Tim Bunce
On Fri, Dec 17, 2004 at 03:17:25AM +, Terrence Brannon wrote:
 Christopher Hicks [EMAIL PROTECTED] writes:
 
  Personally I'd like to see a solution based on AppConfig.  We have our
  database configs in AppConfig.  The config files look something like:
 
 I did that two years ago:
 
   http://search.cpan.org/author/TBONE/DBIx-Connect-1.13/lib/DBIx/Connect.pm
 
 However I got sick of AppConfig because I found it unwieldy. I then
 wrote a new module based on Config::ApacheFormat. Now, I decided to
 write something based on pure Perl data structures so that people
 could use whatever config module and nest/wrap/merge as they
 please. Hence DBIx::DBH

Funny how some things change over time. I wonder what'll be next...

;-)

Tim.


Request to update Resources.pm

2004-12-17 Thread terry

Dear Sir,


I would like your permission to update Resources.pm 

  http://search.cpan.org/~francoc/Resources-1.04/Resources.pm

and rename to Config::Resources.

Regards,
Terrence Brannon



Re: DBIx::DBH - Perl extension for simplifying database connectio ns

2004-12-17 Thread Terrence Brannon
Christopher Hicks [EMAIL PROTECTED] writes:

 Personally I'd like to see a solution based on AppConfig.  We have our
 database configs in AppConfig.  The config files look something like:


I did that two years ago:

  http://search.cpan.org/author/TBONE/DBIx-Connect-1.13/lib/DBIx/Connect.pm

However I got sick of AppConfig because I found it unwieldy. I then
wrote a new module based on Config::ApacheFormat. Now, I decided to
write something based on pure Perl data structures so that people
could use whatever config module and nest/wrap/merge as they
please. Hence DBIx::DBH



What name for a printer status supplies module?

2004-12-17 Thread David Landgren
List,
I have some code that queries an HP LaserJet 4600 printer to retrieve a 
web page, that I then scrape to pick out the values of the various 
consumables it has (CMYK cartridges and other kits).

The fact that it uses http is incidental. If HP bothered to supply a 
half-decent MIB, SNMP would be a good alternative.

Anyway, I now have to deal with other HP models, and Ricoh 
printer/copiers as well.

And I haven't a clue what namespace to use. Your advice is much appreciated.
Thanks,
David


Re: What name for a printer status supplies module?

2004-12-17 Thread Lincoln A. Baxter
On Fri, 2004-12-17 at 21:21 +0100, David Landgren wrote:
 List,
 
 I have some code that queries an HP LaserJet 4600 printer to retrieve a 
 web page, that I then scrape to pick out the values of the various 
 consumables it has (CMYK cartridges and other kits).
 
 The fact that it uses http is incidental. If HP bothered to supply a 
 half-decent MIB, SNMP would be a good alternative.
 
 Anyway, I now have to deal with other HP models, and Ricoh 
 printer/copiers as well.
 
 And I haven't a clue what namespace to use. Your advice is much appreciated.

Printer:: comes to mind.  How about:

Printer::Status::Brand::Model

Brand could provide the a common interface around (and wrap) Model.

And Status could provide the generic interface for printer status.

Just some thoughts...

Lincoln