in reply to Re^2: Convert Shell script to Perl
in thread Convert Shell script to Perl
This is the code:
When I run the perl program from the command line using - perl abc.pl - I don't get any error messages. When I run the following command from the commandline:use 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 directory. I would've expected to create a new environment variable called LIBDIR with the c:\somefolder as the value ? Thanksperl $ENV{'LIBDIR'}='C:\SOMEFOLDER';
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Convert Shell script to Perl
by Utilitarian (Vicar) on Oct 10, 2011 at 15:43 UTC |
In Section
Seekers of Perl Wisdom