Oh dear... can we get non-strict for one liners with -E then? I admit it
isn't an issue for me at the moment, as I do my one liners in perl5
Maybe I need to think functionally, so variable declaration isn't an issue
On Fri, Aug 28, 2015 at 11:48 AM, Carl Mäsak <cma...@gmail.com> wrote:
> Moritz (>>), Tux (>):
> >> I could continue with other Perl 5 deficiencies (no strict by default,
> > Using strict *STILL* is not enabled by default for perl6
> > one-liners either:
> > $ perl6 -e'my Int $this = 1; $thıs++; say $this;'
> > 1
> > $ perl6 -Mstrict -e'my Int $this = 1; $thıs++; say $this;'
> > ===SORRY!=== Error while compiling -e
> > Variable '$thıs' is not declared. Did you mean '$this'?
> > at -e:1
> > ------> my Int $this = 1; ⏏$thıs++; say $this;
> > That, IMHO, is a huge deficiency!
> >> lack of easy threading, too many globals, obscure regex syntax), but the
> >> individual problems aren't the point. My main point is that large parts
> >> of Perl 5 are still stuck in the past, with no good way forward.
> Good news! I just pushed a change (with backing from other core
> developers) that makes -e strict by default!
> commit 5fb81fffa90f90515e663a21987cff484e8260b8
> Author: Carl Masak <cma...@gmail.com>
> Date: Fri Aug 28 17:45:25 2015 +0200
> strict is now on by default, even for -e
> This should make (most of) p6u happy.
> Enjoy! :)
> // Carl