in reply to Re: Warning: Freeing unreferenced scalar
in thread Warning: Freeing unreferenced scalar
Basically BEGIN{ require lib; lib->import( File::Basename::dirname($0) ); }
Also I think $0 has no meaning yet when the use statements are compiled.
It is defined, test it
BEGIN { warn $0 }; use lib $0; print $_,$/ for @INC; __END__
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Warning: Freeing unreferenced scalar
by rovf (Priest) on Aug 19, 2009 at 07:42 UTC | |
by mck (Initiate) on Aug 19, 2009 at 11:46 UTC | |
by Anonymous Monk on Aug 19, 2009 at 11:12 UTC |