Perl::...tation(3pm)

πŸ“¦
version 1.0.3 Β· 3 versions
, in debian bookworm, ubuntu noble

πŸ’– NAME πŸ’–

Perl::...tation β€” bestie, the whole vibe of this page is one thing: don't call methods indirectly. That's it. That's the tea. β˜•


πŸ¦‹ DESCRIPTION πŸ¦‹

It's a legacy "freenode" theme policy alias. Yes, an alias. She's giving nostalgia. ✨


🚨 POLICY MOVED 🚨

Not me showing up late to the party β€” this policy has been moved to Perl::Critic::Community. It lives there now. New address, same energy. πŸ‘πŸ’…

πŸ‘‘ AFFILIATION πŸ‘‘

This policy is part of Perl::Critic::Freenode. She runs with that crew, fr fr. 🫢


πŸŽ€ CONFIGURATION πŸŽ€

Okay so here's the fun part β€” you can configure this policy, in the same way as its parent policy Perl::Critic::Policy::Objects::ProhibitIndirectSyntax, if you wanna attempt to forbid additional method names from being called indirectly. Iconic, right? 😌

But lowkey be aware: this may lead to false positives, because it is genuinely difficult to detect indirect object notation by static analysis. Like, the tool is doing its best, okay?? It's not a mind reader. 😭

And heads up: the new subroutine is always forbidden in addition to these. No exceptions, no negotiating, periodt. πŸ‘‘

 [Freenode::IndirectObjectNotation]
 forbid = create destroy

✨ AUTHOR ✨

Dan Book, dbook@cpan.org β€” shoutout to the author, absolute legend. 🌟


Copyright 2015, Dan Book.

This library is free software; you may redistribute it and/or modify it under the terms of the Artistic License version 2.0. Slay, legally speaking. βš–οΈπŸ’œ


🌈 SEE ALSO 🌈

  • Perl::Critic
  • Perl::Critic::Community

And that's the whole page bestie!! This gem was living its best life under perl v5.34.0, dated 2022-07-27 β€” so when you're out here reading this, just know she's been serving this documentation since way back. Bye, love you, go call your methods directly πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from