Perl::C...perators(3)

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

πŸ’– NAME πŸ’–

ok so bestie, welcome to Perl::Critic::Policy::Bangs::ProhibitBitwiseOperators β€” yeah that's the whole name, it's a mouthful, we know. This page is filed in the manual as Perl::C...perators(3) (the column got hungry and ate the middle, not our fault), and it lives under the User Contributed Perl Documentation section. 🌸

The tea: bitwise operators are usually accidentally used instead of logical boolean operators. That's it. That's the policy. πŸŽ€


✨ AFFILIATION ✨

This Policy is part of the Perl::Critic::Bangs distribution. so if you're getting yelled at by it, that's who to thank 🫢


πŸ“ DESCRIPTION πŸ“

okay so here's the vibe: bitwise operators are usually accidentally used instead of logical boolean operators. like, the classic oopsie. πŸ“

Instead of writing "$a || $b", people will often write "$a | $b", which is not correct. πŸ’€

One character off. One. and that one character changes everything. it's giving "I meant or but I typed or's chaotic cousin". not me crying over a single pipe 😭


βš™οΈ CONFIGURATION βš™οΈ

This policy cannot be configured. no knobs, no dials, no secret perlcriticrc incantations. it is what it is, periodt. πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

Mike O'Regan <moregan@stresscafe.com> β€” the icon who wrote this policy. bow. πŸ™‡β€β™€οΈ


Copyright (C) 2006-2017 Andy Lester and Mike O'Regan

This library is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. πŸ¦‹


and that's the whole page, bestie, no cap β€” this shipped as perl v5.42.0, dated 2025-07-25. go forth and use || like the main character you are πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from