User Tools

Site Tools


kurs:email.pl
use strict;
use warnings;

my $email = $ARGV[0];

# my ($localpart) = $email =~ /(.+)@/;
# print "$localpart \n";

if ( $email =~ /(.+)@.+\.(.+)\.(.+)/ ) {
  print "$1 - $2 - $3\n";
} else {
  print "keine email!\n";
}
kurs/email.pl.txt · Last modified: 2014/09/10 21:22 (external edit)