Perhaps people understand this already, but I wanted to state it,
because I haven't heard it specifically said.  (Redundancy is good in a
learning environment)
    The point is that, if you do not know where Perl is located, you likely
cannot run the script without finding Perl.  For this reason, your
"Perl-finding mission" is going to have to take place outside of your
script.  No amount of anything you put in that script is going to do
anything if you cannot find Perl.  Otherwise, you have code that needs to
find Perl so it can run the code that needs to find Perl so it can run the
code that needs to find Perl so it can... etc.
    On a Win box with ActivePerl, however, the system will simply see that
the file has the correct extension and run it, ignoring the sh'bang as a
comment.  Though, this is probably not your situation.

Stephen Neu
Internet Development
Characterlink.net
(630) 323-9800 ext. 235

Reply via email to