Skip to content

Instantly share code, notes, and snippets.

@tulik
Last active August 27, 2020 11:03
Show Gist options
  • Save tulik/c7cb2fd18fba9a22d89be7c83dba5754 to your computer and use it in GitHub Desktop.
Save tulik/c7cb2fd18fba9a22d89be7c83dba5754 to your computer and use it in GitHub Desktop.
Generates N numbers of of email in @dispostable.com domain
#!/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