Features and Quick Reference of the R/Splus Perl Package

  • Start, stop and restart one or more Perl interpreters.
  • Call Perl sub-routines, and object and class methods.
    .Perl.
  • Execute perl scripts, either as strings created in S or external files.
    .PerlExpr, .PerlFile
  • Set and get elements of Perl arrays and tables using S's [ (and [<- operators. Also, compute the length of Perl arrays and tables.
  • Load a Perl package from S.
    .PerlPackage
  • Examine and manipulate the Perl name spaces
    .PerlObjects, .PerlGet, .PerlUndef, .PerlDiscard, .PerlExists,
  • Transfer S objects to Perl without assigning/binding them to Perl variables.
    .PerlNewTable, .PerlNewArray
  • Query the current Perl foreign reference management.
    .PerlReferenceCount .PerlReferenceObjects .PerlDiscard
  • From these primitives, one should be able to control Perl in most ways.
    Duncan Temple Lang <duncan@wald.ucdavis.edu>
    Last modified: Tue May 24 11:11:13 PDT 2005