ramprasad27 has asked for the wisdom of the Perl Monks concerning the following question:
can somebody explain me the difference in outputmy $str = 'ban go ban'; my $count =()= ($str =~ /ban/g); print $count; my $count_again = ($str =~ /ban/g); print "\n$count_again";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regexp match count
by ikegami (Patriarch) on Oct 09, 2011 at 05:44 UTC | |
by ramprasad27 (Sexton) on Oct 09, 2011 at 06:07 UTC | |
|
Re: regexp match count
by eyepopslikeamosquito (Archbishop) on Oct 09, 2011 at 06:58 UTC | |
|
Re: regexp match count
by davido (Cardinal) on Oct 09, 2011 at 05:16 UTC |