- or download this
#!/usr/bin/perl
use strict;
...
sleep 5;
print "End\n";
print "</body></html>\n";
- or download this
my $my_print = sub {
print @_;
...
# call it like this
$my_print->("<html><head>....");
- or download this
#!/usr/bin/perl
use strict;
...
$my_flush->();
sleep 5;
print "The rest...\n";