Faker::Provider::Internet - Faker Standard Internet Provider
version 0.12
use Faker; use Faker::Provider::Internet; my $faker = Faker->new; my $internet = Faker::Provider::Internet->new(factory => $faker); say $internet->domain_name;
Faker::Provider::Internet is a Faker provider which provides fake Internet data. Note: This is an early release available for testing and feedback and as such is subject to change.
$internet->domain_name; # douglas-schaefer-and-heaney.biz # pouros-ltd.info # o-reilly-mertz-and-pagac.net
The domain_name method generates a random ficticious domain name.
$internet->domain_word; # fahey-kuphal # buckridge-o-hara-and-olson # renner-gottlieb-and-mills
The domain_word method generates a random ficticious domain word.
$internet->email_address; # xpaucek@yahoo.com # ifarrell@hotmail.com # reichel.kristian@wolff-hand.biz
The email_address method generates a random ficticious email address.
$internet->email_domain; # gmail.com # hotmail.com # yahoo.com
The email_domain method generates a random ficticious email domain.
$internet->ip_address; # 127.139.44.27 # 151.238.203.220 # 217.2.93.202
The ip_address method generates a random ficticious ip address.
$internet->ip_address_v4; # 164.211.250.223 # 17.204.157.48 # 44.168.220.190
The ip_address_v4 method generates a random ficticious ip address v4.
$internet->ip_address_v6; # a3db:be38:1d95:c7d4:390f:c9d7:1169:0d37 # de69:0f5f:7d53:a317:e406:d908:3ecd:250a # d8ca:978f:6aab:fd01:91ab:5046:bc9b:1f6e
The ip_address_v6 method generates a random ficticious ip address v6.
$internet->root_domain; # info # info # org
The root_domain method generates a random ficticious root domain.
$internet->url; # http://raynor-volkman-and-upton.org/ # http://www.crona-ledner-and-parisian.net/ # https://stracke-pty.org/
The url method generates a random ficticious url.
Al Newkirk <anewkirk@ana.io>
This software is copyright (c) 2014 by Al Newkirk.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Faker, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Faker
CPAN shell
perl -MCPAN -e shell install Faker
For more information on module installation, please visit the detailed CPAN module installation guide.