Skip to content

Instantly share code, notes, and snippets.

@tomcha
Last active December 19, 2015 05:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomcha/f511147efaa185c1798c to your computer and use it in GitHub Desktop.
Save tomcha/f511147efaa185c1798c to your computer and use it in GitHub Desktop.
ouyou8
#!/usr/bin/env perl
use strict;
use warnings;
my $acount;
my @domain = ('foo.net', 'bar.net', 'baz.net');
my @mailadd;
for (;;){
print "アカウント名を入力して下さい。(終了はEND) >";
my $acount = <STDIN>;
chomp $acount;
last if $acount eq 'END';
print "ドメインを入力して下さい。\n";
for (my $i = 0; $i <= (@domain -1); $i++){
print "$i : $domain[$i]\n";
}
print "No? >";
my $domain_no = <STDIN>;
chomp $domain_no;
push @mailadd, $acount.'@'.$domain[$domain_no];
}
print join ' ', @mailadd;
print "\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment