http://www.perlmonks.org?node_id=164911

einerwitzen has asked for the wisdom of the Perl Monks concerning the following question:

I have a page holding sections of information separated as such:

<section1> blah blah </section1> <section2> blah blah </section2>
What I need is one perl script to read the file and have each section a piece of an array @secs = ("section1", "section2"); and a foreach to print out each as a link/variable to a second script.

The second script would recieve which section was clicked and read the same file, deleting the selected section but leaving the rest as is.

I don't know if this is clear or not, but i'm clueless on how to go about it. Thanks for any help!!