in reply to CGI within your layout
?<!-- 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(.*)/); }
|
|---|