in reply to Capture smtp mailserver that responds to hello.

my $whoareu = smtp->domain() ;

Try:

my $whoareu = $smtp->domain();

Replies are listed 'Best First'.
Re^2: Capture smtp mailserver that responds to hello.
by shadowfox (Beadle) on Feb 02, 2012 at 15:37 UTC
    Yep, that was it. I got too caught up looking for another way to do it I missed the most basic of problems.

    Thanks!