perl(command=character(), input=character(), perl.args=character())
cat(file = infile, input, sep = "\n")
"stderr"
.
You must have Perl installed on your system for this function to work. See the references to download and install Perl.
A call to Perl is constructed from the input arguments and then call
is invoked through
unix
or
system
.
The call to Perl is through the
Sperl
utility
which adds S-PLUS specific directories to Perl's include search.
The command constructed is:
Sperl perl.args commandfile < infile > outfile 2> errfile
where
infile
contains the values in
input
,
one element per line.
The output from
outfile
and
errfile
is
then read back into S-PLUS.
Perl.com web site: http://www.perl.com. This site contains links for downloading Perl as well as Perl documentation.
Schwartz, Randal L., Phoenix, Tom and Foy, Brian D. 2005. Learning Perl, 4th ed. O'Reilly Media: California.
# What version of Perl do I have: perl(perl.args="--version") # The -p flag to Perl processes and prints each line of input, # this just returns LETTERS: perl(perl.args="-p", input=LETTERS)