Expressions
(midwest.social)
(midwest.social)
cross-posted from: https://lemmy.world/post/52447554
At least the cat is happy again now after getting adopted
I'll forever be sad trying to understand the regex I've written myself...
That's just sad expression with extra steps
none of the meat of the regex shown, 0/10
One star. Too readable, would not write again
Doggy is not smiling but trying to lose heat. Doggy is the real regular expression
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.

Matrix chat room: https://matrix.to/#/#midwestsociallemmy:matrix.org
Communities from our friends:
LiberaPay link: https://liberapay.com/seahorse