Subject: | bug in Data::Faker::Internet 0.07 - 'email' provider is broken |
Date: | Wed, 21 Oct 2009 09:26:40 -0400 |
To: | bug-Data-Faker [...] rt.cpan.org |
From: | Ted Mielczarek <ted [...] mielczarek.org> |
Data::Faker::Internet registers an 'email' provider, which is nice. It also
registers a 'hostname' provider, but it registers it as 'email'. This causes
unexpected behavior, in that asking for a fake email sometimes gives an
email, and sometimes a hostname. The simple fix is to change:
__PACKAGE__->register_plugin(
'email' => [qw($domain_word.$domain_name)],
);
to:
__PACKAGE__->register_plugin(
'hostname' => [qw($domain_word.$domain_name)],
);