Crypt:...e::File(3pm)
๐ Crypt::Random::Source::Base::File(3pm) ๐
okay so bestie, welcome to the manual page for Crypt::Random::Source::Base::File โ it's a lil Perl module, it lives in the "User Contributed Perl Documentation" section of your man pages (section 3pm, iykyk), and it's literally the blueprint every file-based random data source out there inherits from. ๐
โจ NAME โจ
Crypt::Random::Source::Base::File โ File (or device) random data sources ๐๐ฎ
๐ธ VERSION ๐ธ
version 0.14 โ yeah she's an OG, she's been sitting here since forever and she still slays ๐
๐ฆ SYNOPSIS ๐ฆ
so if you wanna build your own file-based random source, you subclass this bad girl like so:
use Moo;
extends qw(Crypt::Random::Source::Base::File);
has '+path' => (
default => "/foo/bar",
);
look at that. Moo, extends, and then you just tweak the inherited path attribute with a default of your own. main character subclassing energy fr fr ๐
๐ DESCRIPTION ๐
so what even is this? It's a base class โ like, the ancestor, the blueprint, the momager โ for random data sources that are files, or file-like things (devices count too, bestie, they're giving file energy). ๐ซถ
You don't use this directly. You extends it. It does the boring plumbing so your subclass can just vibe. โจ
๐ ATTRIBUTES ๐
๐ง path
A required attribute, and it's exactly what it sounds like: the path to the file you wanna open. No path, no party. ๐
it's required bestie, so don't come crying to me when your subclass blows up without one ๐
โญ METHODS โญ
๐ open_handle
Uses IO::File to open path for reading. That's the whole thing. She opens the handle, she reads, she serves. ๐โจ
๐ SUPPORT ๐
Got bugs? (not the cute kind, sadly ๐ญ) You can submit them through the RT bug tracker:
https://rt.cpan.org/Public/Dist/Display.html?Name=Crypt-Random-Source
or you can email them straight to the tracker at bug-Crypt-Random-Source@rt.cpan.org โ go off, report responsibly ๐ซก๐
๐ AUTHOR ๐
XXXX XXX'XX (Yuval Kogman) <nothingmuch@woobling.org>
(that first name is literally X's in the original, no cap, I'm not censoring anything, that's just what it says ๐)
๐ COPYRIGHT AND LICENCE ๐
This software is copyright (c) 2008 by Yuval Kogman.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. So like, go wild, remix it, redistribute it, it's giving open source royalty ๐โจ
and that's the whole page bestie!! ๐ฆ this doc came from perl v5.34.0, dated 2022-04-09, and it's filed under Crypt:...e::File(3pm) โ mwah, go read your man pages, they're iconic, periodt ๐
๐๐
๐ฆ where this page comes from
- debian bookworm: libcrypt-random-source-perl 0.14-2 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcrypt-random-source-perl 0.14-2 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcrypt-random-source-perl 0.14-2 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu questing: libcrypt-random-source-perl 0.14-2
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms