<?xml version="1.0" encoding="windows-1252"?>
<node id="496006" title="Re^2: path to perl interpreter" created="2005-09-29 03:36:20" updated="2005-09-28 23:36:20">
<type id="11">
note</type>
<author id="150584">
rnahi</author>
<data>
<field name="doctext">
&lt;p&gt;What you say does not agree to the docs and to my practice.&lt;/p&gt;

&lt;code&gt;
 $ cat whichperl.pl
#!/usr/bin/perl

printf "operating system: %s\n executable: %s\n", $^O,  $^X, ;
&lt;/code&gt;

&lt;p&gt;And see the results:&lt;/p&gt;
&lt;code&gt; 
$ perl whichperl.pl
operating system: linux
 executable: /usr/bin/perl
 
$ chmod +x whichperl.pl
$ ./whichperl.pl
 operating system: linux
 executable: /usr/bin/perl
&lt;/code&gt;

&lt;p&gt;And later, to another OS:&lt;/p&gt;

&lt;code&gt;
$ perl whichperl.pl
 operating system: freebsd
 executable: /usr/local/bin/perl
&lt;/code&gt;</field>
<field name="root_node">
495992</field>
<field name="parent_node">
495998</field>
</data>
</node>
