Skip to content

system command and Perl confusion

2 messages · Maxim, Nathan McIntyre

#
This reads like a PATH problem. Specify the absolute path to the perl you
want use: /usr/bin/perl or /opt/local/bin/perl. It looks like you already
have Statistics::Descriptive thru MacPorts; you can use
system(paste("/opt/local/bin/perl myscript.pl", ..., sep = " ")). If you
plan on using the Mac OS X version, /usr/bin/perl, use /usr/bin/cpan to
install Statistics::Descriptive first as it appears you don't have that
installed in /System/Library/Perl.

Thanks,
Nathan