in reply to Perl & Cshell

The shell executed in system is not csh. Most probably bash. You can directly manipulate %ENV, though: see perldoc perlvar. Also beware of

perldoc -q environment

(maybe you knew, maybe you didn't, in doubt better to point this out.)

Replies are listed 'Best First'.
Re^2: Perl & Cshell
by Tanktalus (Canon) on May 11, 2006 at 23:21 UTC

    Technically, it's more likely that it's /bin/sh - whatever that is. Check perl -MConfig -le 'print $Config{sh}'. On Linux, this is usually bash, but as I recall, bash does some things slightly differently when invoked as sh than as bash, largely for backwards compatability with the Bourne Shell upon which it was based.

    Making /bin/sh a link to csh seems just whacked though. Most of your system won't work properly if you try it.