[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: #!/Perl question

Brad writes:

> One solution would be to write a makefile that detects the location
> of the perl binary and then prepends the proper shebang line to the
> beginning of your perl programs.

Another trick is this:

    #! /usr/bin/env perl
    print "Hello, world\n";

This depends on env being in /usr/bin everywhere, but perhaps that's
more widely true than it is of Perl.

Personally I just use `#! /usr/bin/perl'.


Reply to: