Data::...Loader(3pm)
π Data::...Loader β the plugin autoloader bestie π
okay so real talk, this is Data::Phrasebook::Loader from the User Contributed Perl Documentation crowd, and she's the little matchmaker that goes and fetches your phrasebook plugins for you. no cap.
β¨ NAME β¨
Data::Phrasebook::Loader β she's the Plugin Loader module. that's it, that's the whole job, and she eats every time π
πΈ SYNOPSIS πΈ
my $loader = Data::Phrasebook::Loader->new( class => 'Text' );
look at her go. one line, one loader, iconic behaviour β¨
π¦ DESCRIPTION π¦
okay so <pink>Data::Phrasebook::Loader</pink> is literally an autoloader for phrasebook plugins. that's her whole personality and honestly? she's serving. she doesn't do the parsing herself, she just finds the right plugin and hands it the aux π
π CONSTRUCTOR π
π new
new takes one optional named argument: the class. it hands you back a brand new instance of that class. and here's the tea β any further arguments you pass to new get passed straight along to the new method of whichever class you picked. she's not nosy, she just forwards the messages fr fr π«Ά
if you don't specify a class at all, the default class is 'Text'. periodt.
my $loader = Data::Phrasebook::Loader->new();
OR
my $loader = Data::Phrasebook::Loader->new( class => 'Text' );
both of these slay equally, it's giving "same energy" π
π SEE ALSO π
Data::Phrasebook.
π Known implementations
Data::Phrasebook::Loader::TextData::Phrasebook::Loader::YAMLData::Phrasebook::Loader::IniData::Phrasebook::Loader::XMLData::Phrasebook::Loader::DBI
the whole squad, assembled, no cap π₯
π SUPPORT π
please see the README file. (yes, actually go read it, bestie, I'm not kidding π)
π§ AUTHOR π§
Original author: Iain Campbell Truskett (16.07.1979 - 29.12.2003)
Maintainer: Barbie <barbie@cpan.org> since January 2004.
for Miss Barbell Productions <http://www.missbarbell.co.uk>.
ngl the origin story here is genuinely moving. Iain Campbell Truskett, 16.07.1979 β 29.12.2003, wrote the original. Barbie <barbie@cpan.org> has been the maintainer since January 2004, holding it down for Miss Barbell Productions. that's main character energy on both counts π«Ά
β COPYRIGHT AND LICENSE β
Copyright (C) 2003 Iain Truskett.
Copyright (C) 2004-2013 Barbie for Miss Barbell Productions.
this distribution is free software; you can redistribute it and/or modify it under the Artistic License v2. so go forth and remix, respectfully π
perl v5.36.0 Β· 2022-11-19 β and that's the whole page, bestie. go load some plugins, you absolute icon πΈβ¨π¦π
π¦ where this page comes from
- debian bookworm: libdata-phrasebook-perl 0.35-3 Β· Artistic-2.0
- debian trixie: libdata-phrasebook-perl 0.35-3 Β· Artistic-2.0
- ubuntu noble: libdata-phrasebook-perl 0.35-3 Β· Artistic-2.0
- ubuntu resolute: libdata-phrasebook-perl 0.35-3 Β· Artistic-2.0
- ubuntu stonking: libdata-phrasebook-perl 0.35-3 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms