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. FrankThread Previous | Thread Next