#!/usr/bin/perl -w use strict; format HEADER = HEADER . sub HEADER () { local $~ = "HEADER"; my $HEADER; open HEADER, ">", \$HEADER; select HEADER; write; close HEADER; select STDOUT; $HEADER; } # HEADER format STDOUT_TOP = TOP @<<<<< @{[HEADER]} . format STDOUT = STDOUT @<<<< $% . write;
TOP HEADER STDOUT 1
page overflow at format2_pl line 19. STDOUT 0 TOP HEADER