in reply to CGI within your layout

Just for now anyway I think I will try my second idea, just to see if it works as I plan. Can anyone give me a snippet to read from $content the top section and bottom section (both being stored in $1 and $2) that's separated by
<!-- SCRIPT TEMPLATE BREAKS HERE -->
?

I need everything above that line stored as $1, everything below as $2.

My best attempt would be

use LWP::Simple; my $content = get("http://www.url.com/scripttemplate.shtml"); my $breakline = "<!-- SCRIPT TEMPLATE BREAKS HERE -->"; while ($content) { $content =~ /(.*)$breakline(.*)/); }