http://qs1969.pair.com?node_id=1039301


in reply to Perl Substr

index tells you the position of $s2 in $s1. length tells you the length of $s2, which you need for telling substr where to start the extraction.

With

perldoc -f index
etc., you get a description of these functions.

-- 
Ronald Fischer <ynnor@mm.st>