Help for this page

Select Code to Download


  1. or download this
    while (<$ifh>) {
        substr($_, $position, $width) =~ s/foo/bar/;
        print $ofh $_;
        # update $position and $width if necessary
    }