#!/usr/bin/env perl use strictures; use CGI ":standard"; use Date::Calc "Today"; my $pid = fork(); if ( $pid ) { hold_page(); } elsif ( $pid == 0 ) { write_php(); } else { die "Couldn't fork\n"; } exit 0; sub hold_page { print header(), start_html("OHAI"), h1("Keep panties unbunched!"), noscript("It's", (Today())[0] . ", for the love of crabcakes!", "Enable JS!"); print <<'_HTML_'; # <- single quote matters. _HTML_ print end_html(); } sub write_php { # Execute script that will write page # found at URL "FILL THIS IN" }