for ($num=0; $num<=100; num++){ if (@text[$num] contains 'string'){ $cnt++; } } print "string was found on $cnt lines"
In reply to Re^2: find text in string
by Anonymous Monk
in thread find text in string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |