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

Re: PATCH: [perl #58182] partial, "The Unicode Bug". Add unicodesemantics for \s, \w

Thread Previous | Thread Next
From:
Frank Wiegand
Date:
May 20, 2010 05:32
Subject:
Re: PATCH: [perl #58182] partial, "The Unicode Bug". Add unicodesemantics for \s, \w
Message ID:
AANLkTikBqYTB_hSttfxcgHutGESBN1NPk0sZ-16Od-Kv@mail.gmail.com
Am Donnerstag, den 20.05.2010, 12:57 +0100 schrieb Ben Morrow:
> Quoth smueller@cpan.org (Steffen Mueller):
> > FWIW, I think documenting the current equivalent of -E (i.e. -e 'use
> > 5.0XX;') is at best adding noise to the documentation. The perl core may
> > have many problems but certainly, none of those is *lack* of docs.
>
> Is it worth documenting the shorter version of that, that is
>
>     perl -M5.10.0 -e'...'

        % perl -E '$notset'

        % perl -e 'use 5.012; $notset'
        Global symbol "$notset" requires explicit package name at -e line 1.
        Execution of -e aborted due to compilation errors.

C<use 5.012> enables feature.pm *and* strictures (without loading strict.pm).

-E (on 5.012) is the same as

        % perl -e 'use feature ":5.12"'

But how to document this generically?

        % perl -e 'use feature ":$^V"'
        Feature bundle "v5.12.1" is not supported by Perl 5.12.1 at -e line 1
        BEGIN failed--compilation aborted at -e line 1.

        % perl -e 'use feature ":$]"'
        Feature bundle "5.012001" is not supported by Perl 5.12.1 at -e line 1
        BEGIN failed--compilation aborted at -e line 1.


Frank

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