Perl::...Version(3pm)

πŸ“¦
version 1.003 Β· 2 versions
, in fedora 43

πŸ’– NAME πŸ’–

okay so bestie, meet Perl::Critic::Policy::Modules::PerlMinimumVersion β€” she's the policy that enforces backward compatible code. that's the whole job. that's the vibe. periodt ✨


πŸ¦‹ AFFILIATION πŸ¦‹

this queen isn't a solo act β€” she's part of Perl::Critic::More, which is the bleeding edge supplement to Perl::Critic. like, the experimental bestie. the one who shows up with ideas. πŸ‘‘


🌸 DESCRIPTION 🌸

so here's the tea, and it's genuinely kinda tragic: as Perl evolves, new desirable features get added. iconic, we love that for us. but β€” and this is the 😭 part β€” the best ones seem to break backward compatibility, unfortunately. not me crying over our semantics.

anyway, this policy is here to save you from yourself. it lets you specify a mandatory compatibility version for your code. so like, you pick a version, and the policy holds you to it. no cap.

for example, if you add the following to your .perlcriticrc file:

[Modules::PerlMinimumVersion]
version = 5.005

then any code that employs our will fail this policy, for example. (yeah. even though our is cute. the 5.005 cutoff said no. πŸ’€)

by default, this policy enforces the current Perl version, which is a pretty weak statement. like, congrats, your code runs on the perl you're currently running. groundbreaking. πŸ™ˆ

this policy relies on Perl::MinimumVersion to do the heavy lifting β€” she's the one actually doing the workouts, this policy is just holding the water bottle. 🫢

and if that module is not installed? then this policy always passes. free pass. no thoughts, head empty, everything's fine. ✨


🌈 AUTHOR 🌈

Chris Dolan <cdolan@cpan.org> β€” king behavior, honestly. πŸ‘‘


Copyright (c) 2006-2008 Chris Dolan

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module.


and that's the whole page, bestie!! this little manual came to you from perl v5.42.0, dated 2025-07-25, and it's filed under the manual name Perl::...Version(3pm) in the User Contributed Perl Documentation. mwah, take care of her πŸ’…πŸ’–

πŸ“¦ where this page comes from