Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Find common prefix from a list of strings

by Jenda (Abbot)
on Jul 14, 2003 at 20:20 UTC ( #274146=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @files = qw(model4run1 model2run1 model4run2 model1run1);
    
    ...
    
    my $prefix = substr($first, 0, length($combined));
    print qq{Prefix is "$prefix"\n};
    
  2. or download this
    @files = qw(model4run1 model5run1);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://274146]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2020-01-21 00:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?