Most of my uses of index look something like
if( $p = 1+index( $str, $sought ) ) { ## Do something with $p ## remembering that it's +1 ## but most times, that what you want anyway. }
In reply to Re: Perl index() Function Returns String, Not Numeric
by BrowserUk
in thread Perl index() Function Returns String, Not Numeric
by ironmo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |