- or download this
undef $/;
$current = <DATA>;
...
stuff i do want
<!---END CURCON-->
more stuff i don't want
- or download this
my ($match) = $current =~ m/$start(.*)$end/s; # note the parens around
+ $match
- or download this
$match =~ tr/\n//d;
# or
$match =~ s/\n//g;