my $log = new File::QuickLog(file => "logtaild.log"); #### $log->print("Starting in build mode."); #### (in cleanup) Can't call method "open" on an undefined value at ./logtaild.pl line 334 during global destruction. #### my $self = bless { _logfile => $arg{'file'} ? $arg{'file'} : $arg[0], _fh => new FileHandle, _logstart => _datetime(), }, $class; #### unless($self->{'_fh'}->open (">>".$self->{'_logfile'})){ croak "Failed to open \"".$self->{'_logfile'}."\""; }