16 Apr 11:06
Perl::MinimumVersion
Adam Kennedy <adam <at> phase-n.com>
2005-04-16 09:06:36 GMT
2005-04-16 09:06:36 GMT
Hi folks I'm presuming all of you have had a chance to read Rob's perl.com article. http://www.perl.com/pub/a/2005/04/14/cpan_guidelines.html I for one noticed a few interesting/odd points. :) Firstly, I disagree with Rob's idea of excluding all operating systems until you get reports from users. Most of the time, 90% of people don't report. They just don't use the module. Better in my mind to ship anyway, but make sure your tests relating to the filesystem are extra paranoid. That way modules just simply fail to install on unusual things like VMS. But what I most wanted to speak about was minimum Perl versions for code, relating his Rob's "gotchas" stuff. It should be possible (and it's been in the mental roadmap for a long time) to create with PPI a package that can tell you what the minimum version of Perl is to run any chunk of Perl code. All the module would need to be would be a collection of PPI &wanted functions which search for a particular thing... sub has_our_variables { $_[1]->isa('PPI::Statement::Variable') and $_[1]->type eq 'our'; }(Continue reading)
Rob
On 4/16/05, Adam Kennedy <adam <at> phase-n.com> wrote:
> You pretty much have to work with the current versions of modules for
> most situations, as anyone using CPAN/CPANPLUS is going to have their
> modules updated. Or at least, that gets you to version 1.0 of the module.
>
> You also have to ignore perl version stuff for anything that is core on
RSS Feed