--- nfo/perl/libs/DesignPattern/Logger.pm 2003/05/13 08:40:15 1.5 +++ nfo/perl/libs/DesignPattern/Logger.pm 2003/06/06 03:19:09 1.6 @@ -1,7 +1,10 @@ ## ------------------------------------------------------------------------ -## $Id: Logger.pm,v 1.5 2003/05/13 08:40:15 joko Exp $ +## $Id: Logger.pm,v 1.6 2003/06/06 03:19:09 joko Exp $ ## ------------------------------------------------------------------------ ## $Log: Logger.pm,v $ +## Revision 1.6 2003/06/06 03:19:09 joko +## minor fixes +## ## Revision 1.5 2003/05/13 08:40:15 joko ## minor update: renamed attribute ## @@ -43,6 +46,16 @@ ## ------------------------------------------------------------------------ +=pod + + This is weird! Forget it. + But we depend on it! + Hmmm.... + + +=cut + + package DesignPattern::Logger; use strict; @@ -134,10 +147,11 @@ foreach (@{$METHOD_LEVELS}) { (my $c_package, my $c_filename, my $c_line, my $c_subroutine, my $c_hasargs, my $c_wantarray, my $c_evaltext, my $c_is_require, my $c_hints, my $c_bitmask) = caller($_); + $c_subroutine ||= ''; $c_subroutine =~ s/.*:://; push @methods, $c_subroutine; } - $calling_sub = join(': ', @methods); + $calling_sub = join(': ', @methods) if @methods; }