Anybody know why the script below does not work?
I can get HTML::TextToHTML to work fine with the
infile option, but not the instring option.
My htmlout.htm end up with just these 2 lines:
</BODY>
</HTML>
I expected it to have abcdefghijklm in it.
More info on HTML::TextToHTML options is located here:
http://txt2html.sourceforge.net/txt2html.html#options_files
Mike Flannigan
#
#
# This script converts TXT to html.
#
#
use strict;
use warnings;
use HTML::TextToHTML;
my $html_file = 'htmlout.htm';
#my $texttemp = "abcd\nefghij\nklm";
my $texttemp = "abcdefghijklm";
# create a new object
my $conv = new HTML::TextToHTML();
# convert a file
$conv->txt2html(instring=>[$texttemp],
outfile=>$html_file,
title=>"Title",
mail=>1,
);
print "\nAll done.\n";
__END__
Thread Next