in reply to Re^3: Stupid mistakes I repeatedly make
in thread Stupid mistakes I repeatedly make
You likely don't care how many times the replacement happened, but it's not uncommon to care about whether any replacements happened.
Caution: Contents may have been coded under pressure.
(How many isn't even an issue unless you're using /g. It's just 1 or 0 — it replaced something or it didn't.)if (s/foo/bar/) { ... } else { ... }
Caution: Contents may have been coded under pressure.
In Section
Meditations