in reply to Re^3: How to determine HTML encoding
in thread How to determine HTML encoding
Ok, so I've got some HTML content with my own subroutine:
my $html = get_content($url); print $html;
Result is I get the contents of $html printed, fine.
Then I want to decode it:
print HTTP::Response->decoded_content($html);
Result:
Odd number of elements in hash assignment at C:/Perl/lib/HTTP/Message.pm line 28 9. Use of uninitialized value in print at myscript.pl line 269.
What's going on? I read the doc on decoded_content and messages and it says something about options I don't understand.
$mess->decoded_content( %options )
Scott
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to determine HTML encoding
by ikegami (Patriarch) on Jul 01, 2010 at 00:50 UTC | |
by slugger415 (Monk) on Jul 01, 2010 at 16:48 UTC | |
by ikegami (Patriarch) on Jul 01, 2010 at 17:31 UTC |