Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
Call Perl Scripts from Other Dir in Linux, Path Messed Up
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Ben Morrow, post: 4746412"] You should check what you write before you post. For instance, have a look at perldoc -m FindBin. What FindBin does is make a rather more sophisticated attempt than you recommend at extracting the path of the script out of $0: the fact that it sometimes refuses to work is because this is not always possible. For instance, invoking a script as 'perl script' will leave only 'script' in $0, with no path info at all. See also KNOWN BUGS in perldoc FindBin: there is no way round this problem. Ben [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
Call Perl Scripts from Other Dir in Linux, Path Messed Up
Top