in reply to Re: stupid/simple mistake
in thread stupid/simple mistake
You never learned how to add numbers without using your fingers? ;-)while ($sequence =~ /$substring/g) { $count++ }
I don't understand the urge to count one-by-one -- and you're not the first poster in this thread to do so.
ought to do it.while (<FILE>) { $count += () = /$substring/g; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: stupid/simple mistake
by gogoglou (Beadle) on Oct 18, 2011 at 14:39 UTC | |
by Caio (Acolyte) on Oct 18, 2011 at 16:05 UTC | |
by JavaFan (Canon) on Oct 18, 2011 at 22:04 UTC |