in reply to Getting the count of a particular alphabet using subroutine
perl -le '$string=q[ttc actssat tb];$count=$string=~tr/t//;print $coun +t' 5
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting the count of a particular alphabet using subroutine
by changma_ha (Sexton) on Aug 06, 2010 at 06:28 UTC |