Data::...ternet(3pm)

πŸ“¦
version 0.006 Β· 3 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– 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. 🫢


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