John Tobey wrote:
>
> "J. David Blackstone" <[EMAIL PROTECTED]> wrote:
> > Thanks for the feedback, everyone. I now believe that what we
> > really want is what so many have suggested, i.e., making strict 'vars'
> > the default (in essence, at least).
>
> Sorry if this was mentioned already. If this change is adopted, I
> would make it conditional on C<$0 ne "-e"> so as not to disturb my
> one-liners. (which are about 99% of the Perl programs I write...)
>
> --
> John Tobey, late nite hacker <[EMAIL PROTECTED]>
I agree.
Some might prefer a single-character switch to disable or enable
strictness for one-liners. The name and meaning of the switch would
depend on whether we decide strict 'vars' should be on or off for
one-liners by default (still up for grabs, though I prefer off).
Anyone who actually uses strict 'vars' for a one-liner (I think I did,
once) might appreciate the ability to
$ perl -_ -e '...'
instead of the longer
$ perl -Mstrict -e '...'
where -_ (replace the underscore with any letter that might be left)
is a hypothetical switch to turn on strict vars.
Actually, the sheer act of typing the above has made me think that's
sort of ridiculous. strict just shouldn't be the case in one-liners, period.
It's hard to run your code through a Perl5 -> Perl6 translator when
your code isn't saved in a file, but only in your head (and fingers :).
J. David