>perl -e "my $a=q|THE FOOD IS DELICIOUS|;for(my $x=-1;($x=index($a,qq| +O|,$x+1))>=0;){print qq|$x\n|}" 5 6 18
"XML is like violence: if it doesn't solve your problem, use more."
In reply to Re: finding the position of a particular character in a string
by NetWallah
in thread finding the position of a particular character in a string
by deep3101
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |