[23086] in Perl-Users-Digest
Perl-Users Digest, Issue: 5307 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Aug 1 18:05:38 2003
Date: Fri, 1 Aug 2003 15:05:08 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Fri, 1 Aug 2003 Volume: 10 Number: 5307
Today's topics:
Re: "web" vs. "traditional" development (was Re: Web de <cwilbur@mithril.chromatico.net>
Re: ccperl Mailing <mikeflan@earthlink.net>
Net::SMTP <erik.waibel@cubic.com>
Re: Net::SMTP <erik.waibel@cubic.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Fri, 01 Aug 2003 18:10:59 GMT
From: Charlton Wilbur <cwilbur@mithril.chromatico.net>
Subject: Re: "web" vs. "traditional" development (was Re: Web development and Perl 6)
Message-Id: <871xw5tfdg.fsf@mithril.chromatico.net>
tadmc@augustmail.com (Tad McClellan) writes:
> Coincidentally, during a break in the middle of this thread, I
> was reading the August 2003 issue of CACM [1], and found an article
> related to the distinctions being drawn here:
>
> "A Mugwump's-Eye View of Web Work" pp21-23 [2]
>
> There's an interesting debate raging around the software
> world: Is Web development the same as traditional software
> project development?
>
> with a discussion of each of the two points of view, which can
> be summarized with these two quotes (I leave it to you to figure
> out which quote is which side :-)
>
> the principles are the same, but the processes are different
>
> we've seen all of this before
My own experience suggests to me that at a deep level it's all the
same, but that the superficial differences put different pressures on
the process and cause it to break in different places.
One big superficial difference is in time-frame. A project intended
for the web will have less time alloted for it, because of the common
perception that the web must be responsive and bleeding-edge (and
the common perception that web programming is somehow easier than
other sorts of programming). The web is under pressure to be *fast*,
and so processes that involve (for instance) weekly code reviews,
paperwork and signoff for changes, and the like, won't work well when
applied to the web.
Another big superficial difference is in delivery. Some more
traditional approaches require software distribution, and so there's a
great deal of pressure to get it right the first time. On the web,
because the interesting software is housed on the single server rather
than on the hundreds of clients, changing the software is easy, and so
it tends to happen a lot more often -- and the people who are writing
the requirements see less point in codifying them, because it's so
easy to change them if you don't get what you want.
So my view would be the middle way: we've seen it all before, but the
emphasis is different, which means the development process needs to
change.
(Of course, in the original context -- a lone novice web programmer,
considering PHP or Perl, this is all irrelevant, because there's no
methodology or process there to begin with.)
Charlton
------------------------------
Date: Fri, 01 Aug 2003 18:54:05 GMT
From: Mike Flannigan <mikeflan@earthlink.net>
Subject: Re: ccperl Mailing
Message-Id: <3F2AB7DC.B94E4E75@earthlink.net>
Oops, sorry.
I just had to jump on that question, since it was one of the
few that I mistakenly thought I could answer :-)
Mike
Erik Waibel wrote:
> Mike,
>
> The problem with this is that we need to only use the modules that come with
> the standard ccperl5.0 install. We have a program called "ClearCase", which
> is a file managing program, and we run Perl scripts within this program
> using ccperl5.0, which gets installed on a user's computer with the
> ClearCase installation. There are only a few mail modules that come with
> the standard installation and I need to be able to only use these modules.
> The instructions within the modules are confusing at best.
>
> --
> Thanks,
> Erik Waibel
> ----------
> Perl Hacker v.1.0
> "Mike Flannigan" <mikeflan@earthlink.net> wrote in message
> news:3F2A8CCD.B881354F@earthlink.net...
> >
> > Sendmail.pm (use Mail::Sendmail;)
> > worked for me (without an attachment) on a Win2000 box.
> > Just install the module from:
> > http://search.cpan.org/search?module=Mail::Sendmail
> >
> > and use the "Another Example" that they supply.
> >
> > I'd like to hear how to attached a file to the message.
> >
> >
> > Mike
> >
> >
> > Erik Waibel wrote:
> >
> > > Hello,
> > >
> > > I was wondering if there is a way to send an email (with or without an
> > > attachment) using "ccperl5.0"? I've seen the modules, but there
> > > instructions aren't very informative.
> > >
> > > --
> > > Thanks,
> > > Erik Waibel
> > > ----------
> > > Perl Hacker v.1.0
> >
------------------------------
Date: Fri, 01 Aug 2003 19:17:43 GMT
From: "Erik Waibel" <erik.waibel@cubic.com>
Subject: Net::SMTP
Message-Id: <r1zWa.4697$fp6.84836619@newssvr13.news.prodigy.com>
Hello,
I'm trying to send mail using the Net::SMTP module, but am having
difficulties. I'm not using Perl, I'm using "ccperl", which comes with
ClearCase. So I'm limited to the mail modules that came standard with the
installation: Mail::Mailer, Mail::Mailer::sendmail, Net::SMTP... Here's my
code:
use Net::SMTP;
sub send_mail
{
$send_to = 'someone@someplace.com';
$server = 'my_server.com';
$smtp = new Net::SMTP ('host', Hello=>$server);
$smtp->mail($ENV{USER});
$smtp->to($send_to);
$smtp->data();
$smtp->datasend("To: whomever");
$smtp->datasend("\n");
$smtp->datasend("Test");
$smtp->dataend();
$smtp->quit;
}
This is the error:
%cmd> ccperl cclibrpt.pl
"connect: The requested address is not valid in its context.
at cclibrpt.pl line 149"
The line being referred to is the $smtp = new... line
-- -------
Thanks,
Erik Waibel
----------
Perl Hacker v.1.0
------------------------------
Date: Fri, 01 Aug 2003 20:06:44 GMT
From: "Erik Waibel" <erik.waibel@cubic.com>
Subject: Re: Net::SMTP
Message-Id: <oLzWa.4840$Tr6.84989990@newssvr13.news.prodigy.com>
Figured it out. Here's the code in case anyone else needs it:
$server = 'server_name';
$send_from = 'sender@something.com';
$send_to = 'recipient@something.com';
$msg = ' Body of Email Goes Here ';
$msg = "Subject: This is your subject line" .
"To: $send_to\n" .
"From: $send_from\n" .
"\n" .
$msg .
"\n";
$smtp = Net::SMTP->new($server) ||
die "Unable to connect to $server\n";
$smtp->mail($send_from) || die "Unable to set sender $send_from\n";
$smtp->to($send_to) || die "Unable to set recipient $send_to\n";
$smtp->data($text) || die "Unable to send text\n";
print "Message sent to $send_to\n";
$smtp->quit;
--
Thanks,
Erik Waibel
----------
Perl Hacker v.1.0
"Erik Waibel" <erik.waibel@cubic.com> wrote in message
news:r1zWa.4697$fp6.84836619@newssvr13.news.prodigy.com...
> Hello,
>
> I'm trying to send mail using the Net::SMTP module, but am having
> difficulties. I'm not using Perl, I'm using "ccperl", which comes with
> ClearCase. So I'm limited to the mail modules that came standard with the
> installation: Mail::Mailer, Mail::Mailer::sendmail, Net::SMTP... Here's
my
> code:
>
> use Net::SMTP;
> sub send_mail
> {
> $send_to = 'someone@someplace.com';
> $server = 'my_server.com';
> $smtp = new Net::SMTP ('host', Hello=>$server);
>
> $smtp->mail($ENV{USER});
> $smtp->to($send_to);
>
> $smtp->data();
> $smtp->datasend("To: whomever");
> $smtp->datasend("\n");
> $smtp->datasend("Test");
> $smtp->dataend();
>
> $smtp->quit;
> }
>
> This is the error:
>
> %cmd> ccperl cclibrpt.pl
> "connect: The requested address is not valid in its context.
> at cclibrpt.pl line 149"
>
> The line being referred to is the $smtp = new... line
> -- -------
> Thanks,
> Erik Waibel
> ----------
> Perl Hacker v.1.0
>
>
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc. For subscription or unsubscription requests, send
the single line:
subscribe perl-users
or:
unsubscribe perl-users
to almanac@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.
For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V10 Issue 5307
***************************************