in reply to Posting Program
Disclaimer: code not tested (couldn't test it well on this box)use strict; # DO THIS! (by the way, you missed that one..) use warnings; # haha and that too.. use Lingua::EN::Sentence; my $page_sentence_count = 45; # 45 sentences per page! my $sentences=get_sentences($text); ## Get the sentences. for (my $scount = 0; $scount < scalar @$sentences; $scount++) { unless ($scount % $page_sentence_count) { print "Next page!\n"; # do whatever you want here (say, open next file etc) } print $sentences->[$scount] . "\n"; }
$"=q;grep;;$,=q"grep";for(`find . -name ".saves*~"`){s;$/;;;/(.*-(\d+) +-.*)$/; $_=["ps -e -o pid | "," $2 | "," -v "," "];`@$_`?{print"+ $1"}:{print" +- $1"}&&`rm $1`; print$\;}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Posting Program
by Jemts (Monk) on May 25, 2002 at 16:55 UTC |