in reply to Re: Logging module sometimes writes its file in the wrong directory
in thread Logging module sometimes writes its file in the wrong directory
BEGIN { if ($::dir) { $dir = $::dir; } else { $0 =~ '(.*[\\\/])\w+\.\w+$'; $dir = $1; } }
use File::Basename; my $dir = dirname($0);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Logging module sometimes writes its file in the wrong directory
by CountOrlok (Friar) on May 03, 2006 at 17:33 UTC |