To be in the same spirit as most of the other solutions proposed here, you should have written ($index = index($str, 'CO', $index)) > -1 as
;-)lc($index = index($str, 'CO', $index)) =~ /^-/
In reply to Re^2: How to insert a "/" within a string?
by rovf
in thread How to insert a "/" within a string?
by rsvp1920
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |