File: Examples.pod

package info (click to toggle)
libdata-fake-perl 0.006-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 324 kB
  • sloc: perl: 987; makefile: 7
file content (50 lines) | stat: -rw-r--r-- 876 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# PODNAME: Data::Fake::Examples
# ABSTRACT: Examples of combining Data::Fake generators

__END__

=pod

=encoding UTF-8

=head1 NAME

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

=head1 VERSION

version 0.006

=head1 EXAMPLES

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

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

=head1 AUTHOR

David Golden <dagolden@cpan.org>

=head1 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

=cut