<this post vanished, so i'm resending>

Quoting O'Reilly book:
Every process[2] has its own current directory. When a new process is
launched, it inherits its parent's current directory, but that's the end of
the connection. If your Perl program changes its directory, it won't affect
the parent shell (or whatever) that launched the Perl process. Likewise, the
processes that the Perl program creates cannot affect that Perl program's
current directory. The current directories for these new processes are
inherited from the Perl program's current directory.


At 09:37 AM 4/19/05 +0100, andrew Black wrote:
>In a bit more detail as to what I am trying to do at application level.
>I want to be able to type "mycd test" and this looks up test in a flat 
>file and finds
>    test  :  c:\blah\blah\moreblah\test


However, if ur running the Bash shell u can do this.  Then ur mycd command
is a bash script that can optionally have a perl component.

#!/bin/bash
$destdir=`perlscript.pl $1`
cd $destdir
exit

Your bash shell will now be in that directory.








--
REMEMBER THE WORLD TRADE CENTER         ---=< WTC 911 >=--
"...ne cede males"

00000100

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to