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
In reply to Replacing one regex in your ury
by TomDLux
in thread Extract portion of string based on string separator
by linuxfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |