Skip to Content.
Sympa Menu

freetds - Re: [freetds] logging public functions

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] logging public functions
  • Date: Wed, 22 Mar 2006 22:41:12 -0500

ZIGLIO, Frediano, VF-IT wrote:
> Currently I'm mainly working on tests. Now DBD::ODBC works flawlessly
> with some tests skipped but I hope to get rid of a failing test for next
> version. I started coding the longstanding cursors under ODBC so
> "Multiple concurrent statements" will work! I'm also working to make
> tests works using SF compile farm.

This sounds very good. I'll have to add more SF links to the website.

> I'm quite ready but I would need a
> help with perl... the problem is that I program in perl like in C...
> could you check misc/online.pl file?

Basically, it's pretty good. fwiw, in general I use:

open OUT, ">$filename"
or die qq(could not open "$filename" ($!));

Oftentimes the $filename has surprising contents that 'could not open
file' doesn't reveal, and sometimes errno is interesting, too.

Also, you really don't need start_html() and end_html(). I would use Here
Documents for the long strings with '%s' for $title, and printf():

$Preamble=<<"HTML"
<!DOCTYPE HTML PUBLIC
[...]
HTML

printf HTML $Preamble, $title;

I guess we're on topic.... ;-)

Regards,

--jkl





Archive powered by MHonArc 2.6.24.

Top of Page