#!/usr/bin/perl -w -s use strict; use Fcntl ; use CGI (":all","start_table",":nodebug"); use Data::Dumper ; $Data::Dumper::Terse =1; $Data::Dumper::Indent =1; $Data::Dumper::Deepcopy=1; use HTML::BoxML; use Pod::Simple::HTML; use LWP::Simple qw/get/; #import _only_ the get function my %h; our ($textdir,$tohtml,$export,$import,$create,$cvsdir,$slides,$base,$name,$print); $tohtml ||= $slides || $print; our %conf; my @col=("#ffffff", "#226219;" , #Verde fundo "#6a8394;" , #azul "#f36e21;" , #laranja "#f9ce87;" , #laranja2 "#fbdea7;" , #laranja3 "#d25c10;" , #laranja4 ); my $defaultcss = " "; my $fgo= q[ var i = 0; var max=30; var loc; function go(){ if(i > max){ i=0; } loc="#slide"+i;i++; this.location=loc;}]; my $x; my ($mday,$mon,$year) = (localtime(time()))[3,4,5]; my $fulldate = sprintf('%4d/%.2d/%.2d',$year+1900,$mon+1,$mday); for(@ARGV){ print tohtml("sp",$_); } sub pod2html{my $doc = shift; my $podparser = Pod::Simple::HTML->new(); my $str; $podparser->output_string(\$str); $podparser->parse_string_document($doc); $str =~ s!^.*?(