develooper Front page | perl.perl5.porters | Postings from April 2011

missing package has gone missing!

Thread Next
Tom Christiansen
April 30, 2011 18:45
missing package has gone missing!
Message ID:
A package statement is not supposed to be required to have a
package.  This is so you are forced to fully qualify things,
which makes it stricter than strict:

    % perl5.8.8 -e 'package; $main::x = 1'

    % perl5.10.0 -e 'package; $main::x = 1'
    syntax error at -e line 1, near "package;"
    Execution of -e aborted due to compilation errors.
    Exit 255

Huh?  There's no syntax error there.

There is nothing in the perl5100delta manpage about this.

What happened?  Did somebody kill it by mistake?


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About