Hi,
I got a perl script that begins like this.
---------------------------------------------------------------------------------------------------------------------------------------------------------
#!/usr/bin/sh -- # -*- perl -*-
eval 'ORACLE_HOME=/opt/oracle; export ORACLE_HOME;LD_LIBRARY_PATH=/opt/
oracle/lib; export LD_LIBRARY_PATH; exec /bin/perl $0 ${1+"$@"} ;' if
0;
#Pel statements start from here
--------------------------------------------------------------------------------------------------------------------------------------------------------
My guess is it's setting some shell variables (environment), and then
launching the perl interperter so that the rest of the script is
treated as a perl script.
But, I would really appreicate it, if somebody can explain me what's
happening here exactly.
Thanks!
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/