in reply to Extract portion of string based on string separator

Not related to your question, just to my bugbear---people using regex for trivial operations.

Regexes are complicated machines with significant overhead. Using one to prepend a character irritates. It's like using a 747 to get milk from teh corner store.

How about doing something like ...

my $y = '/' . join '/', @foo );

Maybe I should change my nick to GrumpyOldMan ... my friends can call me GOM

Tom
--
TTTATCGGTCGTTATATAGATGTTTGCA