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