scripts icon indicating copy to clipboard operation
scripts copied to clipboard

[multiline.pl] Pod::Select deprecated and removed in latest Perl

Open rianadon opened this issue 3 years ago • 1 comments

Script / WeeChat

  • Name of script: multiline.pl among others
  • Script version: 0.6.3
  • WeeChat version: 2.9

This bug has been reported to the script author? Yes/No Response or reason: 

Bug summary

A few of the perl modules (multiline.pl, menu.pl, coords.pl, etc) use the Pods::Select library, which used to be built-in to perl. This library was deprecated, and in Perl 3.32.0 the parent library Pod::Parser module was removed.

For Perl 3.32.0, it is required to download the module from CPAN or your package manager. However, Pod::Parser has been replaced with the builtin Pod::Simple, which may be a suitable replacement.

Steps to reproduce

1. Download perl 3.32.0, without any extra libraries 2. Install multiline.pl 3. Perl will report it cannot find the Pod::Select library

Suggested solutions

Preferably replace Pod::Select with Pod::Simple or document users must install the extra package (e.g. on Arch this is pacman -S perl-pod-parser).

rianadon avatar Aug 09 '20 22:08 rianadon

I asked on IRC #perl and they agreed that apparently Pod::Simple either cannot do it or the documentation is so bad that there's no way to figure out how to do it.

For now the recommended solution will be to install Pod::Select manually

ailin-nemui avatar Aug 25 '20 07:08 ailin-nemui