perl
R2026bCall Perl script using operating system executable
Description
result = perl( calls the Perl
script perlfile)perlfile and returns the script output.
On Microsoft®
Windows® systems, MATLAB® ships with Perl, which is available from the Perl website. For
information about using the Perl programming language, Perl source code, and a
standard distribution of Perl, see https://www.perl.org/.
On Linux® and macOS systems, MATLAB calls the Perl interpreter available with the operating system.
result = perl(
calls the script with the arguments perlfile,arg1,...,argN)arg1,...,argN.
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)