in reply to Re: count repeatation
in thread count repeatation
my $num = $string =~ s/XX/XX/g;
It works in list context too.
print $string =~ s/XX/XX/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: count repeatation
by JavaFan (Canon) on Aug 19, 2009 at 17:48 UTC | |
by ikegami (Patriarch) on Aug 19, 2009 at 18:02 UTC |