i would like to know what happens when you use the perl -x flag, which "switches to that directory before running the program". can't seem to get this to change to any directory on my win32 box, running cygwin, and the -h for perl gives: 'perhaps cd to directory'. perhaps! is this a case of hubris in perl-the-app? do i have to be especially good for this cd to take place? is the sense of mystery here designed to lend yet more allure to the perl command line? anyone use this flag before? if so, what does it do to cwd?let me state the line from perl -h:
tells Perl that the program is embedded in a larger chunk of unrelated ASCII text, such as in a mail message. Leading garbage will be discarded until the first line that starts with #! and contains the string "perl".....
In reply to Re: cwd, location, and the secret of -x
by wirrwarr
in thread current working dir is location of script?
by mandog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |