Mock::Person::DE - Generate random sets of German names.
use Mock::Person::DE qw(first_male first_female last_male last_female middle_male middle_female name); my $first_male = first_male(); my $first_female = first_female(); my $last_male = last_male(); my $last_female = last_female(); my $middle_male = middle_male(); my $middle_female = middle_female(); my $name = name($sex);
Data for this module was found on these pages:
about.com
There's usually no distinction between a first and middle name in Germany.
indiachildnames.com
Returns random first name of male person.
Returns random first name of female person.
Returns random last name of male person.
Returns random last name of female person.
Returns random middle name of male person.
Returns random middle name of female person.
Recieves scalar with sex of the person ('male' or 'female') and returns scalar with generated name. Default value of $sex variable is undef, that means random name.
Returns random male name.
Returns random female name.
Name type. Possible values are: 'two', 'three'. Default value is 'three'.
use strict; use warnings; use Encode qw(encode_utf8); use Mock::Person::DE qw(name); # Error. print encode_utf8(name())."\n"; # Output like. # Cedric Nick Baumann
use strict; use warnings; use Encode qw(encode_utf8); use Mock::Person::DE; # Get all last male names. my @last_males = @Mock::Person::DE::last_male; # Print out. print sort map { encode_utf8($_)."\n" } @last_males; # Output: # Albrecht # Arnold # Bauer # Baumann # Beck # Becker # Berger # Bergmann # Brandt # Braun # Busch # Böhm # Dietrich # Engel # Fischer # Frank # Franke # Friedrich # Fuchs # Graf # Groß # Günther # Haas # Hahn # Hartmann # Heinrich # Herrmann # Hoffmann # Hofmann # Horn # Huber # Jung # Jäger # Kaiser # Keller # Klein # Koch # Kraus # Krause # Krämer # Krüger # Kuhn # Köhler # König # Kühn # Lang # Lange # Lehmann # Lorenz # Ludwig # Maier # Martin # Mayer # Meier # Meyer # Möller # Müller # Neumann # Otto # Peters # Pfeiffer # Pohl # Richter # Roth # Sauer # Schmid # Schmidt # Schmitt # Schmitz # Schneider # Scholz # Schreiber # Schröder # Schubert # Schulte # Schulz # Schulze # Schumacher # Schuster # Schwarz # Schäfer # Seidel # Simon # Sommer # Stein # Thomas # Vogel # Vogt # Voigt # Wagner # Walter # Weber # Weiß # Werner # Winkler # Winter # Wolf # Wolff # Ziegler # Zimmermann
Exporter, List::MoreUtils, Readonly.
Install the Mock::Person modules.
https://github.com/michal-josef-spacek/Mock-Person-DE
Michal Josef Špaček mailto:skim@cpan.org
http://skim.cz
© Michal Josef Špaček 2013-2021
BSD 2-Clause License
0.06
To install Mock::Person::DE, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mock::Person::DE
CPAN shell
perl -MCPAN -e shell install Mock::Person::DE
For more information on module installation, please visit the detailed CPAN module installation guide.