akrrs7 has asked for the wisdom of the Perl Monks concerning the following question:
This is the shell script
#!/usr/bin/sh export LIBDIR=$MY_XALANHOME/bin export LOCALCLASSPATH=${LIBDIR}/xalan.jar export LOCALCLASSPATH=${LOCALCLASSPATH}:${LIBDIR}/xml-apis.jar export LOCALCLASSPATH=${LOCALCLASSPATH}:${LIBDIR}/xercesImpl.jar JAVACMD=$JAVA_HOME/bin/java $JAVACMD -cp $LOCALCLASSPATH org.apache.xalan.xslt.Process "$@"
This is the perl equivalent script
#!/usr/bin/perl use strict; use warnings; $ENV {'LIBDIR'}='$MY_XALANHOME/bin'; $ENV {'LOCALCLASSPATH'}='$LIBDIR/xalan.jar'; $ENV {'LOCALCLASSPATH'}='$LOCALCLASSPATH:$LIBDIR/xml-apis.jar'; $ENV {'LOCALCLASSPATH'}='$LOCALCLASSPATH:$LIBDIR/xercesImpl.jar'; JAVACMD=$JAVA_HOME/bin/java; $JAVACMD -cp $LOCALCLASSPATH org.apache.xalan.xslt.Process "$@";
Please review and advise where I could be off on the perl script. I need this to work in Windows as well as Unix.
Thanks
Back to
Seekers of Perl Wisdom