in reply to Where is the interpreter
Admittedly, if you have perl-like paths in the PATH, this code would be confused - but then you could get fancy, and try to verify existance of perl, and it's execute-ability.my $p; for (split /,|;/, $ENV{PATH}){ m/\Wperl\W/i and $p=$_ }; print qq[===$p==\n]; # $p contains the path to perl
Update:Ignore this drivel. Use ikegami's (++) correct answer below.
"A closed mouth gathers no feet." --Unknown
|
|---|