Rethinking »no VERSION«

[email protected] (Frank Wiegand)
Newsgroups perl.perl5.porters
Message-ID <1276814718.9870.109.camel@hal2>
Hi @,

with the recent (>= 5.11.0) perl releases, the C<no VERSION;> syntax
became partially useless for VERSION > 5.011. C<use VERSION;> now
enables strictures and so does C<no>. As a consequence this breaks code
like this:

        % bleadperl -we 'no 6; $c = "foo"'
        Global symbol "$c" requires explicit package name at -e line 1.
        Execution of -e aborted due to compilation errors.

So, what do we want to achieve with this syntax? I think, it's not
widely used, but it should just be something like

        C<no VERSION;> stops the compilation process if VERSION >= $^V.

Maybe this sentence could be added to the »perldoc -f no« documentation
(»opposite of use« is quite confusing).


Thanks, Frank
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.