Scroll to navigation

Data::Fake::Examples(3pm) User Contributed Perl Documentation Data::Fake::Examples(3pm)

NAME

Data::Fake::Examples - 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 <dagolden@cpan.org>

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
2024-07-24 perl v5.38.2