develooper Front page | perl.perl6.language | Postings from April 2001

RE: Larry's Apocalypse 1

Thread Previous | Thread Next
From:
Garrett Goebel
Date:
April 5, 2001 14:33
Subject:
RE: Larry's Apocalypse 1
Message ID:
71BEC0D4E1DED3118F7A009027B12028703278@EXCH_MISSION
From: Simon Cozens [mailto:simon@netthink.co.uk]
> On Thu, Apr 05, 2001 at 10:10:47PM +0100, Michael G Schwern wrote:
> >
> > I think he's saying that its annoying to have to write any 
> > sort of tag that says "Hey, I'm starting a new Perl 6 program
> > here!" at the top of every single program, much in the same
> > way its tiresome to write "int main(...)" in every C program.
> >
> >  Then again, we already have  to do the #! thing.

There's no need save portability for a #! on Win32.
 

> So have "#!/usr/bin/perl6" do an implicit "module main" in 
> the absence of any other module declaration.

I like that, assuming that:

#!perl6

and

#!perl6 -s -w

would work for Win32...


It is strange, but in perl 5 #!perl -w  turns on warnings, but #!perl -s
doesn't equate to use strict;



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