in reply to web spider

Use a regex, see the docs
for my $email (@addresses) { if ($email =~ m/^(.*?)ulster.ac.uk/) { print $1 , "\n"; }; };



This is not a Signature...