$CLASSPATH=`cat file_with_classpath`; is perfectly acceptable, and probably better in general than setting an environment var. I might have Perl open the file on its own to read the contents instead of calling cat, though. IO::All is nice for this:
use IO::All; $CLASSPATH = io('file_with_classpath')->slurp;
"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.
In reply to Re^2: CLASSPATH in perl on windows using cygwin
by hardburn
in thread CLASSPATH in perl on windows using cygwin
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |