use lib "./blib/lib"; # create new object with operator overloading activated use String::Divert; my $html = new String::Divert; $html->overload(1); # generate outer HTML framework $html .= "\n" . "
\n" . " " . $html->folder("head") . " \n" . " \n" . " " . $html->folder("body") . " \n" . "\n"; $html >> "body"; # generate body $html .= "\n" . " " . $html->folder("left") . " | \n" . "\n" . " " . $html->folder("right") . " | \n" . "