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