Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by djantzen (Priest)
on Jun 17, 2003 at 21:44 UTC ( #266652=note: print w/ replies, xml ) Need Help??


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

I'd be explicit in the length and drop the trailing comma after your regex. How about letting the documentation read in the order of execution?

my @letter_seq = map( $curr->[STYLE].":".join(',', splice @letter, 0, length($_)), join('', @property{@letter}) =~ /\G(X|D+|L+)/g ); # Join the result of a hash slice taken from the letter-to-property # mapping. Perform a match against the joined string to group together # alphanumeric characters and leave all others distinct. Remove each m +atch # from the @letter array and join the character(s) to an output string + such # that the resulting format is i.e., "some_type:f4,!".


"The dead do not recognize context" -- Kai, Lexx


Comment on Re: I wrote some clever code - can the comment "defuse" it?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2014-12-26 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls