Mock::Person::CZ - Generate random sets of Czech names.
use Mock::Person::CZ 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:
cz.wikipedia.org
There's usually no distinction between a first and middle name in the Czech Republic.
cz.wikipedia.org - male names, cs.wikipedia.org - female names.
Returns random fists name of male person.
Returns random fists 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 'male'.
# Pragmas. use strict; use warnings; # Modules. use Encode qw(encode_utf8); use Mock::Person::CZ qw(name); # Error. print encode_utf8(name())."\n"; # Output like. # Štefan Lukáš Šimek
# Pragmas. use strict; use warnings; # Modules. use Encode qw(encode_utf8); use Mock::Person::CZ; # Get all last male names. my @last_males = @Mock::Person::CZ::last_male; # Print out. print sort map { encode_utf8($_)."\n" } @last_males; # Output: # Bartoš # Beneš # Blažek # Bláha # Bureš # Doležal # Dostál # Dušek # Dvořák # Fiala # Havlíček # Holub # Horák # Hrubý # Hruška # Hájek # Janda # Jelínek # Kadlec # Kolář # Konečný # Kopecký # Kovář # Kratochvíl # Krejčí # Král # Kučera # Kříž # Liška # Mach # Malý # Marek # Mareš # Matoušek # Mašek # Moravec # Musil # Müller # Navrátil # Nguyen # Novotný # Novák # Němec # Pavlík # Pokorný # Polák # Pospíšil # Procházka # Růžička # Sedláček # Soukup # Staněk # Svoboda # Sýkora # Tichý # Urban # Valenta # Vaněk # Veselý # Vlček # Vávra # Zeman # Čech # Čermák # Černý # Říha # Ševčík # Šimek # Štěpánek # Šťastný
Exporter, Readonly.
Mock::Person, Mock::Person::DE, Mock::Person::SV, Mock::Person::RU.
https://github.com/tupinek/Mock-Person-CZ
Michal Špaček mailto:skim@cpan.org
http://skim.cz
BSD license.
0.01
To install Mock::Person::CZ, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mock::Person::CZ
CPAN shell
perl -MCPAN -e shell install Mock::Person::CZ
For more information on module installation, please visit the detailed CPAN module installation guide.