in reply to Re: tr/abc// won't use string for matching, then what?
in thread tr/abc// won't use string

I now tried:
$x = 0; while (<DATA>) { ++$x while($_ =~ /abc/g); }
but it is still not counting "abc" right....
What did I do wrong?

Replies are listed 'Best First'.
Re: Re: Re: tr/abc// won't use string for matching, then what?
by jynx (Priest) on Jul 19, 2001 at 22:48 UTC

    at this point,

    i should have asked previously, excuse me for the delay, but it might help to know what results you're actually getting and what version of perl you're using. This may help for further debugging...

    jynx