Perl學習筆記-6

字符串函數操做 搜索子串 搜索第一次出現的位置 找出子串在母串中的相對位置 $where=index($big, $small); $where=index($big, $small,$start_with); 返回位置從0算起。沒法找到返回-1。web 搜索最後一次出現的位置 my $last_slash=rindex("/etc/passwd", "/"); 求子串 my $part=subs
相關文章
相關標籤/搜索