RE: path info

2002-02-20 Thread Thomas Bätzler
Peter Eisengrein [mailto:[EMAIL PROTECTED]] suggested: > print `cd`; This is very bad advice for several reasons: - depends on "cd" being in $PATH (or builtin to the shell) - Perl code need not be started from current directory If one needs to find his script's home directory, then FindBin is

RE: path info

2002-02-19 Thread Jeffrey
--- Peter Eisengrein <[EMAIL PROTECTED]> wrote: > print `cd`; Prints the current directory only -- I made a similar error a few weeks ago, by suggesting the Cwd module. For example, if I call my script as follows: ../bin/where_am_i.pl I don't get the bin directory -- I get the directory that the

Re: path info

2002-02-19 Thread Thomas R Wyant_III
<[EMAIL PROTECTED]> wrote: > I'm looking for a simple one or two liner snippet > that i can call to get the current directory of the script use Cwd; Example: C:\1Tmp>perl -MCwd -e "print getcwd" C:/1Tmp Tom Wyant ___ Perl-Win32-Users mailing l