perl
Call Perl script using operating system executable
Description
perl(
calls the Perl script
perlfile
)perlfile
.
On Microsoft® Windows® systems, MATLAB® ships with Perl, which is available from the Perl.org website. For information about using the Perl programming language, Perl source code, and a standard distribution of Perl, see www.perl.org.
On Linux® and Mac systems, MATLAB calls the Perl interpreter available with the operating system.
perl(
calls the script with the arguments perlfile
,arg1,...,argN
)arg1,...,argN
.
returns
the results. Use this option with any of the input arguments from the previous
syntaxes.result
= perl(___)
Examples
Input Arguments
Output Arguments
Tips
Consider using Perl scripts instead of MATLAB code when:
You want to use an existing Perl script.
You want to preprocess data quickly. MATLAB reads Perl script formatting more easily than other formatting.
Perl has features not supported by MATLAB.
Version History
Introduced before R2006aSee Also
dos
| regexp
| system
| unix
| !
(exclamation point)