in reply to Re: Re: Find common prefix from a list of strings
in thread Find common prefix from a list of strings
Loved your chop $s; - it's the easiest and coolest way to deal with the "I found the condition that makes me stop, but i already added one too many characters" - in fact, I've used it that way myself.
--Bob Niederman, http://bob-n.com