sub maxprefix { my $p = shift; grep {chop($p) until (/^$p/)} @_; $p; }
In reply to Re: Find common prefix from a list of strings
by sgifford
in thread Find common prefix from a list of strings
by Albannach
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |