On Fri, Mar 13, 2015 at 8:54 AM, Rob Hoelz <r...@hoelz.ro> wrote: > On Fri, 13 Mar 2015 07:13:31 -0500 > Tom Browder <tom.brow...@gmail.com> wrote: > > > I have seen the following beginning lines of Perl programs in some > > examples on the Perl 6 web site: > > > > #!/usr/bin/env perl6 > > v6; > > > > Isn't the 'v6' superflous given the first line? > > The specification doesn't account for shebang lines; a file is > determined as Perl 6 if the first non-whitespace-only, non-comment line > is something like "use v6", or a class/role/grammar/etc declaration. >
I'll further note that perl 5 looked inside #! lines... and the result was not pretty and often rather annoying. Best not to make assumptions about what program names are. -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net