Last active
August 27, 2020 11:03
-
-
Save tulik/c7cb2fd18fba9a22d89be7c83dba5754 to your computer and use it in GitHub Desktop.
Generates N numbers of of email in @dispostable.com domain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings qw( all ); | |
use feature qw( say ); | |
my @chars = ('0'..'9'); | |
my $len = 4; | |
my $x = shift // 1; | |
for (1..$x) { | |
my $num = ''; | |
for (1..$len) { | |
$num .= $chars[int rand @chars]; | |
} | |
say 'sme_' . $num . '@dispostable.com;'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment