Skip to content

Conversation

trwyant
Copy link

@trwyant trwyant commented Jul 24, 2025

The Perl version that introduced each category was determined by trolling through lib/warnings.pm in each Perl kit beginning with 5.6.0, making note of when each version first appeared.

I considered using the table in regen/warnings.pl, but some of the versions in that table seem off to me ('all' is present in 5.6, but the table says 5.8), and it does not contain retracted warnings categories (e.g. 'chmod').

trwyant added 3 commits July 24, 2025 12:11
The Perl version that introduced each category was determined by
trolling through lib/warnings.pm in each Perl kit beginning with 5.6.0,
making note of when each version first appeared.

I considered using the table in regen/warnings.pl, but some of the
versions in that table seem off to me ('all' is present in 5.6, but the
table says 5.8), and it does not contain retracted warnings categories
(e.g. 'chmod').
Said less tersely: the previous version of the code returned nothing
unless some 'use warnings' had an argument. This version returns '5.006'
if 'use warnings' is found but no arguments are found. This makes no
difference in practice since v5.6 is the assumed minimum, but I'm
paranoid and it makes me feel better.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant