Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Leigh Gardiner on August 13, 2002, 05:44:42 PM

Title: Perl Path...
Post by: Leigh Gardiner on August 13, 2002, 05:44:42 PM
Where is the path to perl?
normally its in /usr/local/bin/perl but i can't seem to find it on SME...or does it not have it installed?
Title: Re: Perl Path...
Post by: Scott Smith on August 13, 2002, 05:48:37 PM
# which perl
Title: Re: Perl Path...
Post by: Jon Blakely on August 13, 2002, 06:22:56 PM
try

/usr/bin/perl

Jon
Title: Re: Perl Path...
Post by: Leigh Gardiner on August 14, 2002, 02:09:22 PM
cool. /usr/bin/perl worked

thats not the actual path to perl tho is it...what is that file? i had a look at it buts its no human readable...
Title: Re: Perl Path...
Post by: Charlie Brady on August 14, 2002, 07:30:50 PM
Leigh Gardiner wrote:

> thats not the actual path to perl tho is it...what is that
> file?

It's the actual path to perl.
 
According to Larry Wall, it's the only correct path to perl.

Charlie
Title: Re: Perl Path...
Post by: Greg Zartman on August 14, 2002, 08:14:01 PM
> cool. /usr/bin/perl worked
> thats not the actual path to perl tho is it...what is that
> file? i had a look at it buts its no human readable...

[root@server root]# ll /usr/bin/perl*
-rwxr-xr-x    2 root     root       797972 Feb 20 12:0
7 /usr/bin/perl
-rwxr-xr-x    2 root     root       797972 Feb 20 12:0
7 /usr/bin/perl5.6.1
-rwxr-xr-x    1 root     root        35465 Feb 20 12:0
5 /usr/bin/perlbug
-rwxr-xr-x    1 root     root        16920 Feb 20 12:0
5 /usr/bin/perlcc
-rwxr-xr-x    1 root     root        22631 Feb 20 12:0
5 /usr/bin/perldoc

I'm not sure how much more "actual" that you can get than that.   Perl isn't some sort of mysterious system that just exists out there.   It's simply an executable that reads in code, compiles the code, and then finally executes the code.  

Greg