Perl: How to print www :: curl :: form content?

I have a variable my $curlf = WWW::Curl::Form->new; , and I want to check its contents.

I tried to do

print Dumper($curlf) if($verbose);

but got the following result:

$VAR1 = bless( do{\(my $o = 151334456)}, 'WWW::Curl::Form' );

What is the right way to do this?

Thanks in advance.

+6
source share
1 answer

WWW::Curl::Form not a proper Perl data structure, it is just a scalar reference to a C data structure similar to XS code, which in itself (at least partially) wraps around some libcurl library functions.

If you can program in C, the right way to check its contents is to extend the XS code by using the correct libcurl function calls to extract information from a pair of curl_httppost data curl_httppost . Then send the patch to the supporting module.

If you cannot program in C, send a function request for the next module version to the module maintainer.

+3
source

Source: https://habr.com/ru/post/890185/


All Articles