WebSer...:Source(3pm)
π WebService::CIA::Source β the perl manpage but make it cute π
okay bestie, gather round, because we're reading the manual for WebService::CIA::Source, and it's a 3pm perl module page, so you know it's gonna be a whole thing. no cap. π
β¨ NAME β¨
WebService::CIA::Source β it's literally a base class for WebService::CIA sources. that's the whole job description. she's the blueprint, the blueprint-iest blueprint. π
πΈ SYNOPSIS πΈ
here's the vibe, copy-paste ready:
use WebService::CIA::Source;
my $source = WebService::CIA::Source->new();
two lines. iconic. she said "load me, then make me." π
π¦ DESCRIPTION π¦
so WebService::CIA::Source is a base class for WebService::CIA sources β think WebService::CIA::Source::DBM and WebService::CIA::Source::Web. those are the daughters, this is the mother. π
and likeβ¦ could you technically use her as a source all on her own? sure bestie, technically. but it won't get you very far. that's not me being mean, that's the actual documentation being real with you. she's the abstract vibe, not the plug. π
π§ METHODS π§
π new()
makes you a brand new WebService::CIA::Source object. takes no arguments. zero. none. she doesn't want them. periodt. β¨
π value($country_code, $field)
retrieves a value. and by "retrieves a value" i mean it always returns undef. every single time. the audacity honestly π that's the bit though β she's a base class, she's not gonna do the work for you.
π all($country_code)
retrieves all fields and values. and it always returns an empty hashref. nothing. nada. a cute little empty {} for your troubles π«Ά
π AUTHOR π
Ian Malpass (ian-cpan@indecorous.com)
π COPYRIGHT π
Copyright 2003-2007, Ian Malpass
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. so go off, redistribute responsibly. π
and here's the tea: the CIA World Factbook's copyright information page (https://www.cia.gov/library/publications/the-world-factbook/docs/contributor_copyright.html) says, and i quote:
The Factbook is in the public domain. Accordingly, it may be copied freely without permission of the Central Intelligence Agency (CIA).
public domain baby!! copy away, no permission slip needed from the CIA themselves. iconic behaviour fr fr. π₯
π₯ SEE ALSO π₯
WebService::CIAWebService::CIA::ParserWebService::CIA::Source::DBMWebService::CIA::Source::Web
go read those next bestie, they actually do stuff π
and that's the page!! this one's from perl v5.34.0, dated 2022-06-28, and it was giving β¨base classβ¨ the whole time. mwah. π πΈπ¦
π¦ where this page comes from
- debian bookworm: libwebservice-cia-perl 1.4-4
- debian trixie: libwebservice-cia-perl 1.4-4
- ubuntu noble: libwebservice-cia-perl 1.4-4
- ubuntu resolute: libwebservice-cia-perl 1.4-4
- ubuntu stonking: libwebservice-cia-perl 1.4-4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms