I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2005-10-27 01:41:34-07 by bob in response to 1171
Re: Delete-to-End of Document
Works for me:
my $delete_rest; my @paragraphs=$content->getParagraphList(); #need to save the first few in order to preserve headers and footers @paras=@paragraphs[4..$#paragraphs]; for my $para (@paragraphs) { my $text= $content->getText($para); $delete_rest++ if $text=~/DELETE TO END/; next unless $delete_rest; $content->removeParagraph($para); } $content->save
Direct Responses: 1255 | Write a response