Help for this page

Select Code to Download


  1. or download this
    use Lingua::EN::Sentence qw(get_sentences);
    open FH, "SomeFile.txt" or die "can't open: $!\n";
    ...
    }
    my $sentences=get_sentences($all);  ## Get the sentences.
    
  2. or download this
    my @all=<>;
    
    ...
        print "$_";
        foreach (split /([.,;])/, $_) {print "$_\n"}
    }
    
  3. or download this
    local $/;
    my $all=<>;