http://www.perlmonks.org?node_id=496031


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

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