Justin Rogers wrote:
>
> Hello there.
> I am trying to write a program that will allow me to quickly jump
> around directories. However, every time I change directories in
> perl my old directories are restored. I've RTFM, and I can't find
> much on maintaining state after the program exits. Thanks.
There's this answer in perlfaq8 (which I got by typing "perldoc -q
directory"):
=head2 I {changed directory, modified my environment} in a perl script.
How com
e the change disappeared when I exited the script? How do I get my
changes to b
e visible?
=over 4
=item Unix
In the strictest sense, it can't be done -- the script executes as a
different process from the shell it was started from. Changes to a
process are not reflected in its parent, only in its own children
created after the change. There is shell magic that may allow you to
fake it by eval()ing the script's output in your shell; check out the
comp.unix.questions FAQ for details.
=back
--
Ned Konz
currently: Stanwood, WA
email: [EMAIL PROTECTED]
homepage: http://bike-nomad.com, Perl homepage:
http://bike-nomad.com/perl
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]