Doggy is not smiling but trying to lose heat. Doggy is the real regular expression
this post was submitted on 28 Sep 2026
127 points (99.2% liked)
Programmer Humor
33371 readers
695 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
- If the mod doesn't find it funny, you're banned. Ha-ha!... For real: do not use the community for "statements". There are other places for such content. Keep it chill and funny.
founded 3 years ago
MODERATORS

none of the meat of the regex shown, 0/10

Why waste time doing any matching if wantarray == false? Just do:
if(!wantarray) { return 1; }
Before any matching happens, or if you only want one return statement set the value of a variable in if(!wantarray)/elsif(regex) and return that variable at the end.
That Perl. You never know if return doesn't have some kind of hidden behavior that uses the local variables...
Well, you could read the perldoc page on it. But you can't just assume it.
If regular expressions are your solution, than your problem is wrong.