Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: Convert Shell script to Perl

by akrrs7 (Acolyte)
on Oct 10, 2011 at 15:11 UTC ( #930660=note: print w/replies, xml ) Need Help??


in reply to Re^3: Convert Shell script to Perl
in thread Convert Shell script to Perl

This is my current code:
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'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 line
perl $ENV{'LIBDIR'}='C:\somefolder';
I get a message saying - 'Can't open perl script "$ENV":no such file or directory

Replies are listed 'Best First'.
Re^5: Convert Shell script to Perl
by eyepopslikeamosquito (Chancellor) on Oct 10, 2011 at 19:28 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://930660]
help
Chatterbox?
[trahulprajapati]: Hello All, Good Morning

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2017-06-28 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (636 votes). Check out past polls.