S
shrek11001
e.g.
$x =~ /A/g;
This var would provide the number of occurences of A in $x ...
Does it exist ? (according to perlvar, no, but ...)
- - -
I have that otherwise...
$x =~ s/[^A]//g;
$nocc = length($x);
but there shld be better...
$x =~ /A/g;
This var would provide the number of occurences of A in $x ...
Does it exist ? (according to perlvar, no, but ...)
- - -
I have that otherwise...
$x =~ s/[^A]//g;
$nocc = length($x);
but there shld be better...