On Fri, Feb 09, 2001 at 12:51:44PM -0800, Brian Ingerson wrote:
> Well, I don't want to start a huge thread on this, but I've found that
> if you want to use Perl to make more than a few system() calls, and be
> able to branch on the return codes of those calls, it can get pretty
> ugly. You might as well stick to shell. But inevitably you'll want Perl
> for something. Inline whould just organize things nicely.
I've written code before that runs a cshell command and propogates the
environment back to Perl. This was primarily used to run third party
programs from Perl where the setup scripts were provided in cshell.
>From there it's a short step to get that environment propogated to zsh,
and I use that code every time I start a shell to run company-wide
cshell login scripts, or to allow me to source cshell scripts.
I mention this as an example of the utility of this idea, and also to
offer my code should it be needed. I'm not sure how useful it would be,
since it runs the script as a whole, and although slightly tricky, it's
not overly complicated, but the offer stands.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net