Perl::C...perators(3)
π 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 Β©οΈ
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
- fedora 43: perl-Perl-Critic-Bangs 1.14-3.fc43 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms