[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: HTML::Clean and IO



> I am about to adopt the Debian HTML::Clean package. I noticed there is
> a bug report [1] mentioning that every time HTML::Clean is called,
> there is a warning about 'Parameterless "use IO" deprecated at
> /usr/share/perl5/HTML/Clean.pm line 4'. I am not yet familiar with
> HTML::Clean's behavior, but anyway, I must get acquinted with it...
> 
> I commented out the 'use IO' line from your package, and it appears to
> work fine. I found no mention of IO anywhere in your code. I fed it
> some documents I have around here, and it works... But I am sure you
> included it for a reason - Please confirm: Would there be a reason not
> to remove the line?

[Not sure if you were expecting a reply from debian-perl or not...]

This warning is due to a change in newer versions of Perl.  

Assuming that the statement is needed at all (?), the fix would be to
change the "use IO" line to something more explicit, like "use IO::File"
or "use IO::Scalar".  That will take care of the warning.

KEN

-- 
Kenneth J. Pronovici <pronovic@debian.org>

Attachment: pgpo0q3lvxt5k.pgp
Description: PGP signature


Reply to: