[Cgi-wml] newbie question
Status: Beta
Brought to you by:
amurren
|
From: Craig T. <ct...@qu...> - 2003-06-16 20:40:27
|
Hi, I'm trying to get the compressed size of my data, using the example
from the man page for CGI::WML but I can't figure out how to set the
$buffer, to get a valid size:
my $wml_buffer;
my $buffer;
print
$wml_cgi->header(),
$wml_cgi->start_wml(),
$wml_cgi->card(-id=>"first_card",
-title=>"Press Release",
-content=>$content),
$wml_cgi->end_wml();
print
$wml_cgi->wml_to_wmlc(-wml=>$wml_buffer,
-errorcontext=>2);
my ($page_title,$content) = $wml_cgi->html_to_wml($buffer);
my $size = length ($wml_cgi->wml_to_wmlc(-wml=>$buffer,
-errorcontext=>0));
print STDERR "\nsize of compressed record: $size\n";
It seems like the $buffer and $wml_buffer are being used before they are
set with a value.
Thanks,
Craig
--
Politics is supposed to be the second-oldest profession. I have come to
realize that it bears a very close resemblance to the first.
--Ronald Reagan
|