On Thu, Jan 16, 2003 at 11:51:46AM -0500, Charles Reitzel wrote: > At 09:51 AM 1/16/2003 -0500, [EMAIL PROTECTED] wrote: > >That's a bummer. > >TMTOWTDI becomes NCD -> No Can Do > > If it is any consolation, it isn't Perl's fault. It is inherent in the > nature of parent/child processes. The child cannot update the parent > environment.
I would characterize this issue as not a limitation but a shell feature which Greg was not aware of. The "source" or "." command is to a shell the same as "use" is to Perl. It can affect the script by changing variables, etc., just as Perl modules can affect a Perl script. The normal shell command syntax, without "source" or "." is the same as Perl's "system" and can generally only affect external things such as files. You can not replace a shell "module" with a Perl script, just as you can not replace a Perl module with a shell script. You can, however, replace both the script and its subscripts (heh) with a parallel Perl script-and-modules arrangement. -John _______________________________________________ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm

