Help for this page

Select Code to Download


  1. or download this
    my @strings = split "\n", $string;
    my @lookup;
    ...
        # byte offset of 1st char on this line
        $lookup[$i] = length($strings[$i-1]) + $lookup[$i-1];
    }
    
  2. or download this
    #!/your/perl/here
    
    ...
            return;
        }
    }