Gossamer Forum
Home : General : Perl Programming :

Simple Perl..? maybe

Quote Reply
Simple Perl..? maybe
Hello, I am writing a news updater script and want the option to delete a news item. Currently my news stuff is setup like this:

<!-- 1 -->
News Goes
Here
<!-- 1E -->

I need a snippet of code that will go through and find <!-- $number --> (in this case number would be one), and delete everything from <!-- $number --> to <!-- $number E -->, including those 2 tags, plus obviously everything in between.
Can someone direct me to how I might do this, basically I need to insert the code after I open the file.

Thanks for any help
Quote Reply
Re: Simple Perl..? maybe In reply to
yeah me too, instead I need to know how to delete an entry from a guestbook.

------------------
Patrick Chukwura
Nytesoft WebSolutions
nytesoft.hypermart.net