>>>>> "HP" == Harry Putnam <rea...@newsguy.com> writes:

  HP> About that module Mail::Mailer.  I still have lots of trouble reading
  HP> code or docu written in the OOp format like the docs for that module.
  HP> The part I'm asking about is clear enough, but I couldn't find in the
  HP> body of the docu, what it really meant in use.

what is the OO format of the docs? no such thing.


  HP>   SYNOPSIS
  HP>     use Mail::Mailer;
  HP>     use Mail::Mailer qw(mail);    # specifies default mailer

  HP> The second one there: `use Mail::Mailer qw(mail);'

do you know the meaning of the word 'default' ? :)


  HP> Could that be used to replace:

  HP>   use Mail::Mailer;

  HP>   #my $mailer = Mail::Mailer->new( 'sendmail', '/usr/sbin/sendmail' ) ;
  HP>   my $mailer = Mail::Mailer->new( 'qmail' ) ;
  HP>   #my $mailer = Mail::Mailer->new( 'smtp', 'Server' => 
'outgoing.verizon.net') ;
  HP>   [...]

  HP> With:

  HP>   use Mail::Mailer qw(mail);

  HP>   my $mailer = Mail::Mailer->new;
  HP>   [...]

have you tried it?

  HP> mean it will determine what is the default mailer wherever the script
  HP> runs?  So unless you want something different than default, use that
  HP> notation?

huh?

it means what it says it means. it sets the default mailer if you don't
specify one in the new method. simple. you are overthinking here. my
only concern would be how does it handle arguments such as the smtp
server or the path to sendmail.

uri


-- 
Uri Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to