X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Message-ID: <38C7FE69.13F0DCBF@umich.edu> Date: Thu, 09 Mar 2000 14:41:29 -0500 From: Eric Durant X-Mailer: Mozilla 4.7 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.soft-sys.matlab, comp.lang.perl.moderated Subject: Matlab/WinNT Using Wrong Perl Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I'm running Matlab 5.3.1 on WinNT. I have not checked whether similar problems occur on Unix versions of Matlab. Shells started under Matlab have their path environment variable prefixed with the matlab\bin directory. This happens regardless of whether the shortcut starting Matlab specifies the matlab\bin directory as the start-in/working directory. This means that statements like !perl -e "..." use Matlab's perl, not the version on the system path. This is not acceptable, since I need to use modules not included with Matlab's perl. Of course, I can specify the path to the perl I want to use, but that's not portable; it requires perl to be installed in the same location on all machines or additional kludgery. So, I'd like to do one of the following, but I'm not sure what the side effects might be: (1) Delete Matlab's perl and have it use the version installed on the system when it needs it for whatever it does with it. (2) Get Matlab to use the unmodified system path in ! shells so that the proper perl is used. Related to (1), does Matlab use perl for anything besides the MEX creation script? Has anyone attempted (1) or (2)? -- Eric Durant http://www.edurant.com/