in reply to file reading issues
while (<>) { if (/<!-- Begin -->/ .. /<!-- End -->/) { print; } } [download]
Or, more concisely:
(/<!-- Begin -->/ .. /<!-- End -->/) && print while (<>); [download]
See Range Operators in perlref(1) for more information.