in reply to Re: using the Mailer / sendmail perl module...
in thread using the Mailer / sendmail perl module...

apologies I forgot to mark it out.... line 93 is
$mailer->(To => $admin_email, Subject => 'Mascot db_update errors') or die "Can't +open: $!\n";
I can't see any issues with that line however. I originally thought it required a  $mailer -> open ({args}) but according to the module docs apparently not when I fell down on open not being recognised. I'll take a look at the smtp oneliner though see if it will fit the bill, thanks Paul.

Replies are listed 'Best First'.
Re^3: using the Mailer / sendmail perl module...
by jettero (Monsignor) on Oct 08, 2007 at 18:30 UTC

    I should have been able to see it anyway then.

    my $lambda = sub { print "lol!\n" }; $lambda->(); # will work my $mailer = Object::Name->new(); $mailer->(); # will not work

    I think you need to call a method name there ($mailer->send() for example), rather than invoking the blessed reference as a code reference -- which clearly doesn't work.

    -Paul