Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$str='ABC---DR----EEEEEGGGG-GRE-RED----KKKK---'; $seq_no_dash=$str; $seq_no_dash=~s/-//g; $len_seq=length($seq_no_dash);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Write code using less lines
by toolic (Bishop) on Apr 19, 2010 at 17:03 UTC | |
by AR (Friar) on Apr 19, 2010 at 17:11 UTC | |
by jwkrahn (Abbot) on Apr 19, 2010 at 18:40 UTC | |
|
Re: Write code using less lines
by AnomalousMonk (Archbishop) on Apr 19, 2010 at 17:12 UTC | |
by johngg (Canon) on Apr 19, 2010 at 18:54 UTC | |
|
Re: Write code using less lines
by nagalenoj (Friar) on Apr 20, 2010 at 06:12 UTC | |
|
Re: Write code using less lines
by petdance (Parson) on Apr 20, 2010 at 16:58 UTC |