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

missing package has gone missing!

Thread Next
From:
Tom Christiansen
Date:
April 30, 2011 18:45
Subject:
missing package has gone missing!
Message ID:
9930.1304214294@chthon
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?

--tom

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