sergstesh has asked for the wisdom of the Perl Monks concerning the following question:

I've been performing WEB search on perl-5.12.0 anonymous packages (the release announcement says it supports them), but couldn't find anything relevant.

I also looked for the info at perldoc.perl.org .

Does anybody have concrete pointers ?

Thanks,
Sergei.

Replies are listed 'Best First'.
Re: info on anonymous packages in perl-5.12.0 needed
by FunkyMonk (Bishop) on Apr 29, 2010 at 19:38 UTC
    the release announcement says it supports them
    Are you sure?

    When I search the release announcement for "package", I find exactly three hits in two lines:

    • New syntax allows developers to specify package version numbers directly in "package" statements
    • As specified in the licenses for Perl (see the files named Artistic or Copying in the Perl distribution), THIS PACKAGE IS PROVIDED WITH ABSOLUTELY NO WARRANTY.

      Yes, I am sure. For example, http://freshmeat.net/projects/perl#release_315792 :


      "
      Changes: This release introduces several new features, such as caller(), anonymous packages, named parameters, the Yada Yada operator, and pluggable keywords.
      "
        I think that whoever wrote the summary for freshmeat was mis-informed. In the official announcement I don't find anything like that, neither in the perl5120delta document, the tests or even the commit messages of the git repository.
        Perl 6 - links to (nearly) everything that is Perl 6.
Re: info on anonymous packages in perl-5.12.0 needed
by webfiend (Vicar) on Apr 30, 2010 at 16:25 UTC

    I did a little searching, and did find a proposal from 2008 about anonymous packages for 5.11/5.12. It doesn't look like anything came from that proposal, though. Whoever originally posted about anonymous packages being a new feature seems to have been misinformed.