Data::...ternet(3pm)
π Data::Fake::Internet π
okay so bestie, welcome to Data::Fake::Internet β it's the little Perl module that makes up fake Internet-related data for you. yes, fake. no, you're not catfishing anyone, it's for testing. chill. π¦
β¨ VERSION β¨
This is version 0.006. she's got lore, she's got history. π
πΈ SYNOPSIS πΈ
okay so here's the vibe, literally copy-paste energy:
use Data::Fake::Internet;
fake_tld()->(); # .gov, etc.
fake_domain()->(); # atqueaut.gov, etc.
fake_email()->(); # john.smith@atqueaut.gov, etc.
see that double-call thing? fake_tld() gives you a generator, and then ->() actually runs it and gives you the fake data. it's giving factory pattern, iykyk. π
π§ DESCRIPTION π§
so basically this module hands you fake data generators for Internet-related stuff. domains, emails, tlds, the whole aesthetic. π
and here's the part that matters: all functions are exported by default. you don't gotta ask for them, they just show up. main character energy fr fr. π
π FUNCTIONS π
π¦ fake_tld
$generator = fake_tld();
returns a generator that randomly selects from a weighted list of about 50 domain suffixes. and the weighting? it's based on a list of the top 500 domains by inbound root-domain links. so it's not just random chaos, it's statistically random chaos. iconic. β¨
π fake_domain
$generator = fake_domain();
returns a generator that concatenates two random words and slaps a random domain suffix on the end. two words plus a tld equals a whole domain. slay. π
π fake_email
$generator = fake_email();
returns a generator that constructs an email out of a random name and a random domain. put together, done, email. no cap. π§
π AUTHOR π
David Golden <dagolden@cpan.org>
like, respect the legend. π«Ά
β COPYRIGHT AND LICENSE β
This software is Copyright (c) 2015 by David Golden.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
so yes bestie, it's free, it's legal, it's Apache 2.0. read the license, it's good for you. π
and that's the whole page π this one came from the User Contributed Perl Documentation corner of the internet, running on perl v5.38.2, dated 2024-07-24. mwah, go generate some fake domains, love u bye πβ¨π¦
π¦ where this page comes from
- debian trixie: libdata-fake-perl 0.006-3 Β· Apache-2.0
- ubuntu resolute: libdata-fake-perl 0.006-3 Β· Apache-2.0
- ubuntu stonking: libdata-fake-perl 0.006-3 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms