in reply to Re: Convert Shell script to Perl
in thread Convert Shell script to Perl
I've tried the following code:
I've then run this program from the command line to get the following message: Can't spawn "cmd.exe": No such file or directory at C:\eWorkspace\myPerlProgram\ xalan_perl.pl line 33.use strict; use warnings; $ENV {'LIBDIR'}='C:/eWorkspace/myPerlProgram'; $ENV {'LOCALCLASSPATH'}='$ENV{LIBDIR}:/xalan.jar'; $ENV {'LOCALCLASSPATH'}='$ENV{LOCALCLASSPATH}:$ENV{LIBDIR}/xml-apis.ja +r'; $ENV {'LOCALCLASSPATH'}='$ENV{LOCALCLASSPATH}:$ENV{LIBDIR}/xercesImpl. +jar'; system "$ENV{LIBDIR}/xalan_perl.pl"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Convert Shell script to Perl
by FreeBeerReekingMonk (Deacon) on Mar 01, 2016 at 20:10 UTC |
In Section
Seekers of Perl Wisdom