Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: path to perl interpreter

by rnahi (Curate)
on Sep 29, 2005 at 07:36 UTC ( [id://496006]=note: print w/replies, xml ) Need Help??


in reply to Re: path to perl interpreter
in thread path to perl interpreter

What you say does not agree to the docs and to my practice.

$ cat whichperl.pl #!/usr/bin/perl printf "operating system: %s\n executable: %s\n", $^O, $^X, ;

And see the results:

$ perl whichperl.pl operating system: linux executable: /usr/bin/perl $ chmod +x whichperl.pl $ ./whichperl.pl operating system: linux executable: /usr/bin/perl

And later, to another OS:

$ perl whichperl.pl operating system: freebsd executable: /usr/local/bin/perl

Replies are listed 'Best First'.
Re^3: path to perl interpreter
by Skeeve (Parson) on Sep 29, 2005 at 10:14 UTC
    Just to add more information to it:
    $ perl whichperl.pl
    operating system: darwin
     executable: perl
    
    $ /usr/bin/perl whichperl.pl 
    operating system: darwin
     executable: /usr/bin/perl
    
    $ chmod +x whichperl.pl
    
    $ ./whichperl.pl 
    operating system: darwin
     executable: perl
    
    $
    

    $\=~s;s*.*;q^|D9JYJ^^qq^\//\\\///^;ex;print
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://496006]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-25 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found