develooper Front page | perl.perl5.porters | Postings from May 2015

Re: [perl #124346] Respect perl6 in hashbang

Thread Previous | Thread Next
From:
Ricardo Signes
Date:
May 26, 2015 11:21
Subject:
Re: [perl #124346] Respect perl6 in hashbang
Message ID:
20150526112053.GA13062@cancer.codesimply.com
* Zefram <zefram@fysh.org> [2015-04-19T10:12:48]
> Leon Timmermans wrote:
> >The attached patch tries to fix that, so that #!perl6 files will DWIM.
> 
> That #! hack is obsolete.  We should not change its behaviour for perl6.
> We should either leave it totally unchanged or remove it entirely.

I find both sides of this tempting, because I constantly write "perl
my-perl6-program" and like to imagine that it would help.  I'd need to have a
perl6 shebang, though, which I rarely do in the things I'm running, which are
tests or libraries.  If I did have a shebang, it would probably be to run env,
sadly, and then I start getting nervous about the idea of picking our
executable based on things like secondary args in the shebang (although we
already do it).

Obviously, I'm just a single data point here.  My gut, though, is that this
will be added complexity with very little actual gain.  It's also very little
added complexity, though.

Anybody care to convince me otherwise?

-- 
rjbs

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About