Chaim Frenkel writes: > Somehow I find > if (40 == ($foo = substr($bar, index($bar, 'xyz')))) { > } I don't understand your hypothetical code. substr() returns the substring of $bar from the position retutned by index, onward. When would this be 40, if index is going to return the position of 'xyz'? I guess I can't understand your idea of safe failure until I see an example, and this doesn't seem to be it. Nat
- RFC 213 (v1) rindex and index should return undef on f... Perl6 RFC Librarian
- Re: RFC 213 (v1) rindex and index should return u... Tom Christiansen
- Re: RFC 213 (v1) rindex and index should retu... Nathan Wiger
- Re: RFC 213 (v1) rindex and index should return u... Chaim Frenkel
- Re: RFC 213 (v1) rindex and index should retu... Nathan Torkington
- Re: RFC 213 (v1) rindex and index should ... Chaim Frenkel
- Re: RFC 213 (v1) rindex and index sho... Nathan Torkington
- Re: RFC 213 (v1) rindex and inde... Chaim Frenkel
- Re: RFC 213 (v1) rindex and ... Nathan Torkington
- Re: RFC 213 (v1) rindex ... Chaim Frenkel
- Re: RFC 213 (v1) rindex ... Glenn Linderman
- Re: RFC 213 (v1) rindex ... John Porter
- Re: RFC 213 (v1) rindex ... Chaim Frenkel
- Re: RFC 213 (v1) rindex ... Glenn Linderman
- Re: RFC 213 (v1) rindex and index should retu... John Porter
- Re: RFC 213 (v1) rindex and index should ... Glenn Linderman
- Re: RFC 213 (v1) rindex and index sho... Chaim Frenkel