smack has asked for the wisdom of the Perl Monks concerning the following question:
Also, FindBin returns the same results:use CGI; use Cwd; my $currentdir = getcwd; print "Current dir is: $currentdir \n";
Both report the location to be "/".I have searched with Google and found no satisfactory solution. I really need to be able to determine where the perl script was executed from, any assistance would be greatly appreciated!use FindBin; print "\nBinary is: $FindBin::Bin \n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using FindBin or CWD from within a CGI program
by Spidy (Chaplain) on Nov 22, 2005 at 00:01 UTC | |
|
Re: Getting CWD from within a CGI program
by ikegami (Patriarch) on Nov 21, 2005 at 17:09 UTC | |
by Aristotle (Chancellor) on Nov 21, 2005 at 17:13 UTC | |
|
Re: Getting CWD from within a CGI program
by holli (Abbot) on Nov 21, 2005 at 17:13 UTC | |
by smack (Beadle) on Nov 21, 2005 at 17:29 UTC | |
|
OT: Non-perl -- but question may be the wrong question
by ww (Archbishop) on Nov 22, 2005 at 14:48 UTC | |
|
Re: Using FindBin or CWD from within a CGI program
by pileofrogs (Priest) on Nov 22, 2005 at 18:46 UTC |