in reply to Re^3: Convert Shell script to Perl
in thread Convert Shell script to Perl
This is my current code:
I've commented out the JAVACMD lines. When I run this on the cmd line say - perl a.pl this does not give me any errors. But I should be able to find these env variables in the command window - I cannot. I've also simply tried this on the command lineuse strict; use warnings; $ENV {'LIBDIR'}='$MY_XALANHOME/bin'; $ENV {'LOCALCLASSPATH'}='$ENV{LIBDIR}:/xalan.jar'; $ENV {'LOCALCLASSPATH'}='$ENV{LOCALCLASSPATH}:$ENV{LIBDIR}/xml-apis.ja +r'; $ENV {'LOCALCLASSPATH'}='$ENV{LOCALCLASSPATH}:$ENV{LIBDIR}/xercesImpl. +jar';
I get a message saying - 'Can't open perl script "$ENV":no such file or directoryperl $ENV{'LIBDIR'}='C:\somefolder';
In Section
Seekers of Perl Wisdom