|
-
November 28th, 2001, 10:41 AM
#7
Junior Member
ok i dont know how to program in perl but i do have background in C.
I tried the "shebang" method with much enthusiasm but it didn't work. Here is a snippit from the config file that checks for perl.
Perl is located on my box at /usr/bin/perl
..............
# find perl5!
print "Ok, trying to find perl5 now... hand on a bit... \n";
for $dir (all_dirs) {
#first, find where it might be; oftentimes you'll see perl, perl4, perl5,
#etc. in the same dir
while (<$dir/perl5* $dir/perl*>) {
if (-x $_) {
$perl_version='($_ -v 2> /dev/null) |
awk '/This is per, version 5/ {print $NF} ' `;
if ($perl_version) {
$PERL=$_;
$pflag="1";
last;
}
}
last if $pflag;
}
last if $pflag;
}
die "\nCan't find perl5! Bailing out...\n" unless $PERL;
print "\nPerl5 is in $PERL\n";
......
any thoughts on how to redirect this script to my perl directory???
ALL help is greatly appreciated.
-xtomey
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|