SPUG: she-bang lines: "/usr/bin/perl" vs "/usr/bin/env perl"

Michael R. Wolf MichaelRWolf at att.net
Fri Apr 13 14:50:03 PDT 2007

I'm familiar with this one:
#! /usr/bin/perl

I've seen this one, but can't think of why it would be better:
#! /usr/bin/env perl



P.S.  The "Hello World" code bubbles use the second form.  I'm curious why.

Michael R. Wolf
    All mammals learn by playing!
        MichaelRWolf at att.net

More information about the spug-list mailing list