in reply to Re: Find the common beginning substring in an array of strings
in thread Find the common beginning substring in an array of strings
This is the code that does the trick against all the examples I have so far... I don't have enough time to post it, but there is a 180-element array I have on my laptop that was not working with the code from the other comment. This was just tricky enough that I thought seeing the way some different monks approached it would be fun. I remain open to other solutions, as this is kind of a fun problem to think about.
Thanks!!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Find the common beginning substring in an array of strings
by aaron_baugher (Curate) on Jun 06, 2012 at 19:27 UTC | |
Re^3: Find the common beginning substring in an array of strings
by Neighbour (Friar) on Jun 07, 2012 at 07:59 UTC |
In Section
Seekers of Perl Wisdom