BEGIN { if ($::dir) { $dir = $::dir; } else { $0 =~ '(.*[\\\/])\w+\.\w+$'; $dir = $1; } }
use File::Basename; my $dir = dirname($0);
In reply to Re^2: Logging module sometimes writes its file in the wrong directory
by Anonymous Monk
in thread Logging module sometimes writes its file in the wrong directory
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |