in reply to Re: /usr/bin/env perl - query
in thread /usr/bin/env perl - query

I know it is OT, but ... does /usr/bin/env perl makes much sense at all? In this case, I could simply write perl. I feel that env is mainly useful when used together with options, such as env -i for providing an empty environment for a command...

-- 
Ronald Fischer <ynnor@mm.st>

Replies are listed 'Best First'.
Re^3: /usr/bin/env perl - query
by JadeNB (Chaplain) on Oct 13, 2008 at 21:38 UTC
    You are right that /usr/bin/env perl and perl will behave the same way on the command line. However, as JavaFan points out below, they are quite different when used on the shebang line (since the former will look for perl in your path, while the latter won't).