Help for this page

Select Code to Download


  1. or download this
    $s = 'variable chars anchor want this';;
    $s = substr $s, index $s,'anchor';;
    print $s;;
    anchor want this
    
  2. or download this
    $s = 'variable chars anchor want this';;
    $s =~ s[.+(?=anchor)][];;
    print $s;;
    anchor want this
    
  3. or download this
    cmpthese -1,{
        a=> q[$s='variable chars anchor want this';$s=~s[.+(?=anchor)][];]
    +,
    ...
           Rate    a    b
    a 1592446/s   -- -48%
    b 3055291/s  92%   --