good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Merge hash keysby hdb (Monsignor) |
on Oct 30, 2013 at 11:54 UTC ( [id://1060342]=note: print w/replies, xml ) | Need Help?? |
Instead of substr you could also use regular expressions. Concatenate all your strings in the correct order with a delimiter character that is not part of the strings, eg. #. Then find the same sequence of characters to the left and right of each delimiter and remove one side. It could look like this:
In Section
Seekers of Perl Wisdom
|
|