develooper Front page | perl.perl5.porters | Postings from January 2009

deprecate UNIVERSAL->import

Thread Next
Ricardo SIGNES
January 26, 2009 07:14
deprecate UNIVERSAL->import
Message ID:

I mean, honestly.

There is no reason for to be loaded, as it does two things: set a
VERSION and setup an &import.  The import should not be used, as we've been
asking people to stop for quite some time now, and it's just a lousy idea.  The
VERSION isn't necessary because (a) there's no code to worry about changing and
(b) the version is directly determinable from $] outside of blead, anyway.

This patch introduces a lexical 'deprecated' warning'.


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