Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: I wrote some clever code - can the comment "defuse" it?

by Aristotle (Chancellor)
on Jun 18, 2003 at 09:41 UTC ( [id://266762]=note: print w/replies, xml ) Need Help??


in reply to Re: I wrote some clever code - can the comment "defuse" it?
in thread I wrote some clever code - can the comment "defuse" it?

I opted for this particular regex as a minor safety net. If any value in %property is ever something else than L, D, or X, the regex will fail at that point. That's just a smidgen better than letting the regex skip those silently, causing the splice to pull together the wrong things.

The latter would be too clever by a half indeed; the join is very clear in my mind, and if I wanted to make it more explicit, I'd use another temporary scalar at that point instead.

Makeshifts last the longest.

  • Comment on Re^2: I wrote some clever code - can the comment "defuse" it?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-25 17:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found