MATLAB: Does the PERL function not work in MATLAB 7.10 (R2010a)

MATLAB

I am using the PERL function, and upon execution, nothing happens.

Best Answer

The PERL function uses the DOS function internally. The command string given to the DOS function contains a '&' character, which causes problems on some systems.
To work around this issue:
1. Execute "edit perl" at the MATLAB prompt.
2. Find the following line of code:
perlCmd = ['set PATH=',perlCmd, ';%PATH%&' cmdString];
3. Comment this line out by putting a '%' character before it, and then add this line of code in its place:
perlCmd = ['"', perlCmd, '"', cmdString];