Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
./Porting/ --target=miniperl --start=v5.16.3 --end=v5.18.0 --expect-fail -e 'sub foo::new {} "::foo"->new'

commit 7156e69abfd37267e85105c6ec0c449ce4e41523
Author: Father Chrysostomos <>
Date:   Thu Sep 20 08:56:38 2012 -0700

    [perl #105922] Allow any string before ->meth
    The rules for filtering out what do not look like package names are
    not logical and disallow valid things like "::main", while allowing
    This commit simply lets any non-empty string be used as a package
    name.  If it is a typo, you’ll get an error anyway.  This allows
    autobox-style calls like "3foo"->CORE::uc, or even "3foo"->uc if you
    set up @ISA first.
    I made an exception for the empty string because it messes up caches
    somehow and causes subsequent method calls all to be called on the
    main package.  I haven’t looked into that yet.  I don’t know whether
    it’s worth it.
    The changes to the tests in cpan/Test-Simple have been submit-
    ted upstream.

Mentioned in perl5180delta:

Class method calls are now allowed on any string, and not just strings beginning with an alphanumeric character. [perl #105922]

In reply to Re: Change to package name handling in Perl 5.18? by haukex
in thread Change to package name handling in Perl 5.18? by tobyink

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (1)
As of 2022-07-03 08:32 GMT
Find Nodes?
    Voting Booth?

    No recent polls found