Which version of Perl is built into MATLAB? perl.m

4 views (last 30 days)
Perl is included with the MATLAB® software on Microsoft® Windows® systems, and thus MATLAB users can run user-created MATLAB functions containing the perl function http://www.mathworks.co.uk/help/matlab/ref/perl.html
As I understand it, the language varies between version and vendor and if code is run on windows or linux. Which version of Perl is included in matlab? Who is the vendor?

Accepted Answer

Friedrich
Friedrich on 8 Oct 2013
Edited: Friedrich on 8 Oct 2013
Hi,
simply call it and find it out. On Windows:
>> system(['"',fullfile(matlabroot, 'sys\perl\win32\bin\perl.exe'),'" -version'])
This is perl, v5.8.9 built for MSWin32-x86-multi-thread
(with 12 registered patches, see perl -V for more detail)
Copyright 1987-2008, Larry Wall
Binary build 827 [291969] provided by ActiveState http://www.ActiveState.com
Built Jan 26 2010 21:15:51
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

More Answers (1)

Sean de Wolski
Sean de Wolski on 8 Oct 2013
Edited: Sean de Wolski on 8 Oct 2013
From looking inside of perl, i.e. edit perl
On Windows, MATLAB uses its own Perl interpreter and this is located here (13b at least):
perlCmd = fullfile(matlabroot, 'sys\perl\win32\bin\');
So opening and viewing these files in the Windows Explorer, you can right click on them and look at the properties for your installation which include details.
winopen(perlCmd)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!