good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
After some CB conversation, I decided to add the following information. First of all - ignore the $curr->[STYLE].":". style bit which is from elsewhere in the code and not relevant here. Secondly, the following is how it works. Please try to work it out before reading this, otherwise you don't help me. :) I'm using a hash slice and a join to create a property map for the letters. If @letter is qw(F o o comma b a are) then after the hash slice and join I get "LLLXLLL". The regex splits this into qw(LLL X LLL), which is what map iterates over. The length of each of those matches controls the number of elements spliced off the front of @letter. Update: these are then joined together so @letter_seq ends up as ("F,o,o", "comma", "b,a,are"). Makeshifts last the longest. In reply to Re: I wrote some clever code - can the comment "defuse" it? (explanations)
by Aristotle
|
|