in reply to Re^2: Howto Call Package from a Subdirectory
in thread Howto Call Package from a Subdirectory
The reason is the lack of the third parameter to catpath.
What's more, it still has a trailing backslash (probably a slash on Unix), which is not my idea of ideal. It might work, or it might fail on some platforms.
The following code no longer produces the warning, but I still get the trailing backslash:
$RealBin = catpath ((splitpath (rel2abs ($0)))[0,1], '');
File::Spec is dumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Howto Call Package from a Subdirectory
by arpad.szasz (Pilgrim) on Jun 18, 2011 at 23:17 UTC |