Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: Stupid mistakes I repeatedly make

by Roy Johnson (Monsignor)
on Mar 28, 2005 at 16:29 UTC ( #442847=note: print w/ replies, xml ) Need Help??


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.

if (s/foo/bar/) { ... } else { ... }
(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.)

Caution: Contents may have been coded under pressure.


Comment on Re^4: Stupid mistakes I repeatedly make
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://442847]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2015-07-04 13:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls