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

Re: Pod::Abstract 0.19 generating warnings on 5.11.3

Thread Previous | Thread Next
From:
Jesse Vincent
Date:
December 28, 2009 07:39
Subject:
Re: Pod::Abstract 0.19 generating warnings on 5.11.3
Message ID:
20091228153931.GA5886@bestpractical.com



On Wed 23.Dec'09 at 20:37:34 +0200, Gabor Szabo wrote:
> On Wed, Dec 23, 2009 at 7:11 PM, Nicholas Clark <nick@ccl4.org> wrote:
> > On Wed, Dec 23, 2009 at 06:56:12PM +0200, Gabor Szabo wrote:
> >> While trying to build Pod::Abstract  0.19
> >> http://search.cpan.org/~blilburne/Pod-Abstract-0.19/
> >> on perl 5.11.3 I got the following warning:
> >>
> >> UNIVERSAL->import is deprecated and will be removed in a future perl
> >> at ..../perl/lib/site_perl/5.11.3/Pod/Abstract/Path.pm line 7
> >>
> >> The module installs but then another module fails its test as it
> >> checks it STDERR and now it
> >> has unexpected output on it.
> >>
> >> Do I understand correctly that best course of action is to notify the
> >> author of Pod::Abstract ask him to stop importing the
> >> functions from UNIVERSAL ?
> >
> > Yes. It would be very useful if you could do this. I'm not sure what
> > the exact fix needs to be in this case.
> 
> It seems that
> 
> use UNIVERSAL;
> 
> generates the same warning so I had to write
> 
> use UNIVERSAL ();

This would be commit cd477a63. It's mentioned in the perldelta as:

C<< UNIVERSAL-E<gt>import() >> is now deprecated.

rjbs: was the intent that a bare 'use UNIVERSAL' is also now deprecated?
If so, I'd love a perldelta patch.

Thread Previous | 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