On Wed, Feb 02, 2000 at 08:21:20PM +0200, Stas Bekman wrote:
>
Oh, and while I'm being picky (nothing personal Stas!):
> $self->{sth}->finish if defined $self->{sth} and $self->{sth};
> $self->{dbh}->disconnect if defined $self->{dbh} and $self->{dbh};
There's no need to test for "defined" and "true" since undefined is false
and won't generate a warning when used in a boolean context. Thus just:
$self->{sth}->finish if $self->{sth};
$self->{dbh}->disconnect if $self->{dbh};
Tim:
- Re: Using network appliance Filer with modperl Jeffrey W. Baker
- Re: Using network appliance Filer with modperl Elizabeth Mattijsen
- Re: Using network appliance Filer with modperl Leslie Mikesell
- Re: Using network appliance Filer with modper... Pascal Eeftinck
- Re: Using network appliance Filer with mo... Stas Bekman
- Re: Using network appliance Filer wit... Oleg Bartunov
- Re: Using network appliance File... Stas Bekman
- Re: Using network appliance ... Oleg Bartunov
- Re: Using network appliance ... Stas Bekman
- Re: Using network appliance Filer wit... Tim Bunce
- Re: Using network appliance Filer wit... Tim Bunce
- Re: Using network appliance Filer with modperl Tim Bunce
- Re: Using network appliance Filer with modperl Steve Reppucci
