Re: Perl 4-era libraries
On Thu, Nov 24, 2011 at 08:48:50PM +0100, Alessandro Ghedini wrote:
> On Thu, Nov 24, 2011 at 06:21:03PM +0000, Dominic Hargreaves wrote:
> > Hello,
> > It probably makes sense at this stage to try and encourage people to
> > move away from the libraries rather than just adding the dependency on
> > libperl4-corelibs-perl;
> I've already patched libcgi-pm-perl to not use shellwords.pl anymore, but
> that was easy given that the only function it exports has been integrated
> in the core module Text::ParseWords (the patch  is just two lines). Same
> for find.pl (replaced by File::Find).
> But what about e.g. termcap.pl? It defines some quite big functions. Are
> there any known alternatives for them that would require as little work as
> possible to convert to? And flush.pl? It's just two little functions, should
> we copy them in the modules that use them? Etc...
Term::Cap looks like a fairly straightforward replacment for termcap.pl.
IO::Handle a bit less so. In many cases we probably don't want to take on
the responsibility for major rewrites to modern styles, though, so maybe
the emphasis on my statement above was wrong.
> Of course, in those cases we may just add the (Build-)Depends on
> libperl4-corelibs-perl and the problems would end there, but I was wondering
> whether someone has thought of this already and provided alternative
> solutions so that we can get rid of libperl4-corelibs-perl completely. We
> may track such "known fixes" in the wiki/website/whatever too.
There's no imperative for removing that package; it's there to be used.
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)