I seem to remember that Perl modules are "objects" or collections of them and I remember from the many attacks on my comprehension by "object-orientation" that "objects" can be ASKED this-or-that. (It's supposed to be a "feature.")
Sometimes you can learn about objects by dumping them:
perl -MHTTP::Tiny -MData::Dumper -le '$o=HTTP::Tiny->new;print Dumper
+$o'
$VAR1 = bless( {
'timeout' => 60,
'keep_alive' => 1,
'max_redirect' => 5,
'verify_SSL' => 0,
'agent' => 'HTTP-Tiny/0.070',
'no_proxy' => []
}, 'HTTP::Tiny' );
Ish:
perl -MHTTP::Tiny -le '$o=HTTP::Tiny->new;print "$_ = $o->{$_}" for so
+rt keys %$o'
agent = HTTP-Tiny/0.070
keep_alive = 1
max_redirect = 5
no_proxy = ARRAY(0x7fc821802fc8)
timeout = 60
verify_SSL = 0
Sometimes, there's no params:
perl -MImage::Magick -MData::Dumper -le '$o=Image::Magick->new;print D
+umper $o'
$VAR1 = bless( [], 'Image::Magick' );
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.