Thanks Julian. That fixed the first error. Unfortunately, I'm still getting the other half, namely: > > Can't call method "parts" on an undefined value at > > /usr/local/MailScanner/bin/explode.pl line 197. Martin