Data::Fake::Examples(3pm)

Data::Fake::Examples3pm

Examples of combining data::fake generators

Version

version 0.006

Examples

I plan to add additional examples here over time. Contributions are welcome.

URLs

    # http://example.com/
    # https://www.example.com/
    # http://www23.example.com/
    use Data::Fake qw/Core Internet/;
    my $fake_url = fake_template(
        "%s://%s%s/",
        fake_pick(qw(http https)),
        fake_pick( "", "www.", fake_digits("www##.") ),
        fake_domain(),
    );

Author

David Golden <[email protected]>

From libdata-fake-perl 0.006-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.