DOKK / manpages / debian 13 / libdata-fake-perl / Data::Fake::Examples.3pm.en
Data::Fake::Examples(3pm) User Contributed Perl Documentation Data::Fake::Examples(3pm)

Data::Fake::Examples - Examples of combining Data::Fake generators

version 0.006

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

    # 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(),
    );

David Golden <dagolden@cpan.org>

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