examples(3)

πŸ“¦
version 2.2.3 Β· 3 versions
, in arch rolling

πŸ’… examples(3) β€” like, the whole page πŸ’…

okay bestie so this is examples(3), and it lives in the User Contributed Perl Documentation section, and I need you to brace yourself: the entire "content" of this page is a little scrap of Perl that fell out of a pod directive. no intro, no NAME, no nothing. it's giving "notes app screenshot of a code snippet." we love a minimal queen tho πŸŽ€


πŸ’» the code, verbatim, no cap πŸ’»

$r = $val1->res_query("good-a.test.dnssec-tools.org", "IN", "A"); my ($pkt,
$err) = new Net::DNS::Packet(\$r); print ($val1->istrusted ?
           "result is trusted\n" :
           "result is NOT trusted\n"); $pkt->print;

that's it. that's the document. she's doing a res_query for "good-a.test.dnssec-tools.org", class "IN", type "A" β€” slay β€” then building a new Net::DNS::Packet(\$r) and pulling out ($pkt, $err) from it, then printing either result is trusted\n or result is NOT trusted\n depending on $val1->istrusted, and finally $pkt->print; to dump the packet. iconic. keep it character-for-character, bestie, do not touch a single quote πŸ™ˆ


😭 POD ERRORS 😭

not me opening this and finding out the page is lowkey broken πŸ’€

hey! the above document had some coding errors, and they're explained riiiight below, so let's get into it:

  • Around line 72: =pod directives shouldn't be over one line long! Ignoring all 7 lines of content β€” so there were 7 whole lines of content in there and the parser just said "nope, ignoring all of it." brutal. fr fr. 😭
  • Around line 91: =pod directives shouldn't be over one line long! Ignoring all 11 lines of content β€” and here, 11 lines got yeeted into the void. the audacity. the disrespect. πŸ’€

the vibe check here is: a single-line-long =pod directive is the rule, and these two spots did not pass, so the content got dropped instead of rendered. that's the whole warning, and honestly it's the most dramatic thing on the page πŸ”₯


✨ cute sign-off ✨

and that's the whole manual page, bestie 🫢 β€” brought to you by perl v5.44.0, dated 2026-10-17. screenshot it, memorize it, tell your friends. periodt. πŸ’œπŸ¦‹

πŸ“¦ where this page comes from