MATLAB Function Reference Previous page   Next Page
perl

Call Perl script using appropriate operating system executable

Syntax

Description

perl('perlfile') calls the Perl script perlfile, using the appropriate operating system Perl executable. Perl is included with MATLAB, so MATLAB users can run M-files containing the perl function.

perl('perlfile',arg1,arg2,...) calls the Perl script perlfile, using the appropriate operating system Perl executable, and passes the arguments arg1, arg2, and so on, to perlfile.

result = perl(...) returns the results of attempted Perl call to result.

Examples

Given the Perl script, hello.pl

run the following statement in MATLAB

MATLAB returns

It is sometimes beneficial to use Perl scripts instead of MATLAB code. The perl function allows you to run those scripts from within MATLAB. Specific examples where you might choose to use a Perl script include

See Also

! (exclamation point), dos, regexp, system, unix


Previous page  peaks perms Next page

© 1994-2005 The MathWorks, Inc.