How to determine if a Perl module is cross-platform?

For example, I want to compress log files created by a script. I use version 5.8.8 so that there is nothing built-in. script - cross-platform, Linux, Solaris, AIX, HPUX and Windows.

Now I am thinking of using IO::Compress::Gzip . Are there any known errors with this module? Will it work on all platforms?

To summarize a little more, how can I find out if there are any known errors in a particular module and on which platforms will this module work?

+4
source share
1 answer

CPAN offers a set of tools that you can use to determine the usefulness of a module before installing it. Unfortunately, IO :: Compress :: Gzip is a suboptimal example of how this can be done.

When you go to the metacpan page of the module , there is a list of tools in the left column. Interesting points:

  • Test results. This will lead you to a page that shows the results of the test suite for different operating systems and different versions of perl. Unfortunately, this service is not responding to my requests at the time of writing.
  • Errors: This is a link to the bugtracker for this module. You can view a list of open bugs to find possible traders. And if you find a problem, you can report it here.
  • Reviews: Some modules have short reviews and ratings of the Perl community. The module you mentioned has no ratings yet, so as an example you can give ratings for List :: MoreUtils .
  • Dependencies are indicated in the right column. If you click on the "dependencies" link, you can get a summary of the test results for the necessary non-core modules for this version of perl. Sorry, no results are available yet.

Many modules also have a โ€œerrors and limitationsโ€ section in the documentation.

Note: according to the corelist program IO::Compress::Gzip is the main module since perl5, v9.4. That doesn't mean much: the core modules are in Core because they are needed to install other modules (or because they have historical significance ... CGI, * cough *). However, this indicates that it is quite stable and completely cross-platform.

+6
source

Source: https://habr.com/ru/post/1491219/


All Articles