Shebangs with perlbrew aliases and EUMM (and without local::lib)

Posted on September 8, 2011. Filed under: Uncategorized | Tags: , , , |

2011-9-04 by Randy Stauner

One Response to “Shebangs with perlbrew aliases and EUMM (and without local::lib)”

RSS Feed for Nothing to see here. Move along please Comments RSS Feed

Also useful if you want to run a script with any perl:

#!/some/perl
eval 'exec /some/other/perl -wS $0 ${1+"$@"}'
    if $running_under_some_shell;

or, via a shell

#!/bin/sh
#! -*-perl-*-
eval 'exec perl -x -wS $0 ${1+"$@"}'
if 0;

See -S in perlrun for more details


Comments are closed.

Liked it here?
Why not try sites on the blogroll...