octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Missing function perl.m


From: John W. Eaton
Subject: Missing function perl.m
Date: Mon, 31 Mar 2008 17:36:44 -0400

On 31-Mar-2008, Julian Schnidder wrote:

| Here is a changeset that implements the perl function in octave.
| 
| perl.m invokes the perl command via a call of system(). A perl  
| interpreter with name "perl" is assumed to be present. No security  
| checks are performed.

I think you can eliminate the loop by using

  sprintf (" %s", varargin{:})

You can simplify the function somewhat by using default arugment
values:

  function [output, status] = perl (script = "", varargin = {})
    ...

Probably there should be checks to ensure that varargin is a cell
array of character strings (see iscellstr) and to ensure that at least
one argument is provided.

Will you please update your function and resubmit it?

Thanks,

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]