[8689] in Perl-Users-Digest
Perl-Users Digest, Issue: 2306 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Apr 13 04:07:22 1998
Date: Mon, 13 Apr 98 01:00:35 -0700
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Mon, 13 Apr 1998 Volume: 8 Number: 2306
Today's topics:
Re: Bill Gates should be invited to O'Reilly's "Free So nathanh@chirp.com.au
Re: Bill Gates should be invited to O'Reilly's "Free So (Andreas Borchert)
Re: Bill Gates should be invited to O'Reilly's "Free So (Andreas Borchert)
Can't locate Net/SMTP.pm <eslcafe@callisto.si.usherb.ca>
Re: File download problem in IE4.0 <rjk@coos.dartmouth.edu>
Re: File download problem in IE4.0 <kenner@xnet.com>
Re: File download problem in IE4.0 (Abigail)
File Upload <kupid@ecom.net>
GUI for perl <yashesh@eecs.berkeley.edu>
Re: How to create a bidirection socket? <jdf@pobox.com>
Re: If "=~" means match what is doesn't match? <rjk@coos.dartmouth.edu>
IMAGEPUSH problems with MSIE rsudduth@comweb.net
Re: Info Regarding Perl 5.005 <rjk@coos.dartmouth.edu>
Re: keys in hashs (Martin Vorlaender)
Re: MacPerl standalone apps <gwynne@utkux.utk.edu>
MDB and Perl <banman@wwdg.com>
Re: Numeric validation (Craig Berry)
Re: Packing? <rjk@coos.dartmouth.edu>
Profiling Perl code <dick@cfcl.com>
Re: Profiling resource use <dick@cfcl.com>
Re: Q: Form CGI script and sender's e-mail address <sneaker@earthling.net>
sendmail substitute for Macperl using "use Net::SMTP" <eslcafe@callisto.si.usherb.ca>
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 12 Apr 1998 21:30:05 +1000
From: nathanh@chirp.com.au
Subject: Re: Bill Gates should be invited to O'Reilly's "Free Software Summit" (was Re: RMS should be invited to O'Reilly's "Free Software Summit")
Message-Id: <m3pvini8g2.fsf@stoli.spirits.org.au>
Stefaan.Eeckels@ecc.lu (Stefaan A Eeckels) writes:
> I wonder if RMS ever anticipated that his 'free software' would
> be the last bastion against Microsoft?
It is not his free software.
It is *our* free software.
--
Modern computers have advanced to the point where they are extremely
intuitive, though obviously you have to spend a lot of time learning
how to use them first.
------------------------------
Date: 13 Apr 98 07:39:12 GMT
From: borchert@turing.mathematik.uni-ulm.de (Andreas Borchert)
Subject: Re: Bill Gates should be invited to O'Reilly's "Free Software Summit" (was Re: RMS should be invited to O'Reilly's "Free Software Summit")
Message-Id: <3531c120.0@news.uni-ulm.de>
On Wed, 08 Apr 1998 15:04:29 -0600, dg50@chrysler.com <dg50@chrysler.com> wrote:
> - O'Reilly publishes the best books on free software. In many cases, they
> publish the _only_ books on free software.
That's the problem. Software without associated documentation is
near to useless and not complete. If you want to change the software
(which is usally encouraged by free software) you are hindered by
the fact that you are unable to update the documentation. So you
end up by starting from scratch (either the documentation or the
whole software project).
I do not have problems where good documentation comes along with
the sources and where additional proprietary documentation is sold
by O'Reilly or others (for me it is like consulting and training).
Perl is a good example for this.
Andreas.
--
Andreas Borchert, Universitaet Ulm, SAI, Helmholtzstr. 18, 89069 Ulm, Germany
E-Mail: borchert@mathematik.uni-ulm.de
WWW: http://www.mathematik.uni-ulm.de/sai/borchert/
PGP key available via ``finger borchert@laborix.mathematik.uni-ulm.de''
------------------------------
Date: 13 Apr 98 07:46:20 GMT
From: borchert@turing.mathematik.uni-ulm.de (Andreas Borchert)
Subject: Re: Bill Gates should be invited to O'Reilly's "Free Software Summit" (was Re: RMS should be invited to O'Reilly's "Free Software Summit")
Message-Id: <3531c2cc.0@news.uni-ulm.de>
On 11 Apr 1998 03:16:12 -0700, Russ Allbery <rra@stanford.edu> wrote:
> In comp.lang.perl.misc, Ben Bullock <ben@hayamasa.demon.co.uk> writes:
> > I should say that the perl FAQ does not meet several free software
> > criteria.
>
> Starting with the really major problem that it's not software....
Documentation is an essential part of software.
Andreas.
--
Andreas Borchert, Universitaet Ulm, SAI, Helmholtzstr. 18, 89069 Ulm, Germany
E-Mail: borchert@mathematik.uni-ulm.de
WWW: http://www.mathematik.uni-ulm.de/sai/borchert/
PGP key available via ``finger borchert@laborix.mathematik.uni-ulm.de''
------------------------------
Date: Mon, 13 Apr 1998 05:38:48 GMT
From: John Taylor-Johnston <eslcafe@callisto.si.usherb.ca>
Subject: Can't locate Net/SMTP.pm
Message-Id: <32FD5AF8.271A@callisto.si.usherb.ca>
When I call this line:
use Net::SMTP;
my Unix server kicks back this message (below) when I run the debug
(perl -c xyz.pl) in telnet. I checked the latest download of perl (unix)
- it's not there! Now what?! Is there another add-on download.
____________________________________________________
Can't locate Net/SMTP.pm in @INC (@INC contains:
/usr/local/lib/perl5/aix/5.0040
4 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/aix
/usr/local/lib/perl5/s
ite_perl /usr/local/lib/perl5/aix .)
____________________________________________________
Please answer by e-mail if you have a SOLUTION.
------------------------------
Date: Sun, 12 Apr 1998 23:25:11 -0400
From: Ronald J Kimball <rjk@coos.dartmouth.edu>
Subject: Re: File download problem in IE4.0
Message-Id: <35318599.3007BC57@coos.dartmouth.edu>
Kenner Estes wrote:
>
> Wow, Abigail - why don't you just go out of your way to be a jerk?
>
> I'm new to Perl and I'm trying to learn without asking questions, and it's
> because of people like you that I'm afraid to. This guy had a question
> about how his Perl script was having trouble interacting with IE, and he
> thought that others in the Perl community may have had the same problem.
> What's wrong with that? You think his question is a waste of your time?
> How much of a waste of your time is it to post a snippy response to his
> honest question?
It's still not a Perl question, it's an IE question, and as such should be
discussed, as Abigail said, in a newsgroup about IE.
--
_ / ' _ / - aka - rjk@coos.dartmouth.edu
( /)//)//)(//)/( Ronald J. Kimball chipmunk@m-net.arbornet.org
/ http://www.ziplink.net/~rjk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: Sun, 12 Apr 1998 23:56:27 -0500
From: "Kenner Estes" <kenner@xnet.com>
Subject: Re: File download problem in IE4.0
Message-Id: <6gs5p5$nk$1@flood.xnet.com>
Ronald J Kimball wrote in message <35318599.3007BC57@coos.dartmouth.edu>...
>It's still not a Perl question, it's an IE question, and as such should be
>discussed, as Abigail said, in a newsgroup about IE.
All I'm saying is that that's all well and good for those of you who know
that for a fact, but this guy didn't know if his problem had to do with some
sort of incorrect scripting that somehow functioned with a couple of
browsers or if it was some IE problem, specifically. He seems to have
posted the question asking for any help anyone could give in what seemed
like a logical place to him: a place where people who have a good grasp on
Perl help out with miscellaneous issues. And you're right - he needed to be
told that his question more appropriately belonged in a different arena. I
thought that the response by Tom Phoenix was perfect, and even more thorough
than the original poster could have hoped.
I completely recognize this need to maintain focus in the newsgroup
(especially one of this size), I just don't understand why, if Abigail wants
to take it upon herself to help do this (which she does frequently in this
newsgroup), she has to do it in such a manner that belittles the person to
whom she is responding (as she also frequently does).
The thing is, I also recognize that it's none of my business, it's just that
I see my own struggle to learn Perl embodied in the original question, and
the attitude that I fear I'll receive if ever I ask a question embodied in
Abigail's response. I just wonder if perhaps she has forgotten what it's
like to not know exactly where to go to find answers.
Anyway, I'm sorry - I know this kind of post is really pretty much a waste
of everyone's time. I'll stay out of it from now on. If anyone does want
to respond but doesn't want to muddy up the newsgroup with something off the
subject of Perl, my e-mail is kenner@xnet.com .
------------------------------
Date: 13 Apr 1998 07:24:29 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: File download problem in IE4.0
Message-Id: <6gsejd$f55$1@client2.news.psi.net>
Kenner Estes (kenner@xnet.com) wrote on MDCLXXXVI September MCMXCIII in
<URL: news:6gs5p5$nk$1@flood.xnet.com>:
++
++
++ I completely recognize this need to maintain focus in the newsgroup
++ (especially one of this size), I just don't understand why, if Abigail wants
++ to take it upon herself to help do this (which she does frequently in this
++ newsgroup), she has to do it in such a manner that belittles the person to
++ whom she is responding (as she also frequently does).
And who do you think you are telling me that I have to do certain things?
I would like the comp.lang.perl.moderated group too; but for a different
reason. Not because of people posting off-topic, but to avoid whiners
like Kenner Estes.
Don't bother replying, I'll killfile you.
Abigail
--
perl -pwle '$_ .= reverse'
------------------------------
Date: Sun, 12 Apr 1998 09:13:29 -0700
From: "David" <kupid@ecom.net>
Subject: File Upload
Message-Id: <6gs2a1$7og$1@usenet11.supernews.com>
I'm trying to customize a File Upload program written in PERL/CGI. Does
anyone know how to restrict the file size to 25 kilobytes -- so that people
can't upload files larger than that to my server?
Thanks!
David
------------------------------
Date: Sun, 12 Apr 1998 21:24:25 -0700
From: Yashesh Shroff <yashesh@eecs.berkeley.edu>
Subject: GUI for perl
Message-Id: <35319379.ABA3E612@eecs.berkeley.edu>
I read in the Perl-32 faq that Tcl is not yet fully available for NT
4.0. Is there a way we can use the regular windows GUI commands to do
this (except for using VB, because I don't have that)? OLE is used to
call windows application, but I am not sure how to use something similar
to draw windows on the screen.
Any advise is appreciated!
Thanks,
yashesh
yashesh<at>eecs.berkeley.edu
------------------------------
Date: 13 Apr 1998 01:09:03 -0500
From: Jonathan Feinberg <jdf@pobox.com>
Subject: Re: How to create a bidirection socket?
Message-Id: <7m4up81s.fsf@mailhost.panix.com>
tree <qh2@cec.wustl.edu> writes:
> if (fork) {
[snip]
> }
> else {
> while(<sock>) {
> print;
> }
> }
You forgot to check if fork() failed. One spelling of the canonical
Perl fork goes
if ($pid = fork) {
#parent
} elsif (defined $pid) {
#child -- $pid is 0
} else {
die "Couldn't fork: $!";
}
--
Jonathan Feinberg jdf@pobox.com Sunny Brooklyn, NY
------------------------------
Date: Sun, 12 Apr 1998 22:59:00 -0400
From: Ronald J Kimball <rjk@coos.dartmouth.edu>
Subject: Re: If "=~" means match what is doesn't match?
Message-Id: <35317F75.84A83E0B@coos.dartmouth.edu>
Sami Sandqvist wrote:
>
> [...]
> if($a =~ "345"){
> print $&,"\n";
> }
> [...]
> This is of course explained in the documentation. (man perlop, Binding
> Operators)
Be sure to note what else the documentation has to say about this:
(If the right argument is an expression rather than a
search pattern, substitution, or translation, it is interpreted as a
search pattern at run time. **This is less efficient than an explicit
search, since the pattern must be compiled every time the expression is
evaluated--unless you've used /o.**) [my emph]
You're right, it's not an error, but it is inefficient.
--
_ / ' _ / - aka - rjk@coos.dartmouth.edu
( /)//)//)(//)/( Ronald J. Kimball chipmunk@m-net.arbornet.org
/ http://www.ziplink.net/~rjk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: Sun, 12 Apr 1998 23:35:31 -0600
From: rsudduth@comweb.net
Subject: IMAGEPUSH problems with MSIE
Message-Id: <6gs4mj$fdr$1@nnrp1.dejanews.com>
Does anyone know the correct headers to output to the
MSIE family browsers to allow imagepush via a perl script.
We have Netscape 3.0 and Netscape 4.0 family browser running
fine but IE is another story.
Here is the Headers for Netscape that we use...
print "\n--ThisRandomString\n";
print "Content-Type: image/jpeg\n";
print "Content-Length: $len\n";
print "Pragma: no-cache\n";
print "Expires: 0\n\n";
print (<JPG>);
Now this is what does now work on IE ;-)
print "Content-Type: image/jpeg\n";
print "Content-Length: $len\n";
print "Pragma: no-cache\n";
print "Expires: 0\n\n";
print (<JPG>);
any help would be apreciated, thanx in advance...
rsudduth-NO SPAM PLEASE-@comweb.net
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
------------------------------
Date: Sun, 12 Apr 1998 23:13:53 -0400
From: Ronald J Kimball <rjk@coos.dartmouth.edu>
Subject: Re: Info Regarding Perl 5.005
Message-Id: <353182F3.15179552@coos.dartmouth.edu>
Randal Schwartz wrote:
>
> And you should *definitly* upgrade to 5.005 when it comes out. Turns
> out there's a CERT-ifiable security bug in all versions of 5.004, so
> 5.005 is now the only Perl that is known-security-bug-free.
"As far as we know, there are no undiscovered bugs in our code." ;-)
--
_ / ' _ / - aka - rjk@coos.dartmouth.edu
( /)//)//)(//)/( Ronald J. Kimball chipmunk@m-net.arbornet.org
/ http://www.ziplink.net/~rjk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: Mon, 13 Apr 1998 06:19:44 +0200
From: martin@RADIOGAGA.HARZ.DE (Martin Vorlaender)
Subject: Re: keys in hashs
Message-Id: <35319260.524144494f47414741@radiogaga.harz.de>
stvhoof@netvision.net.il wrote:
: jn1@outofservice.com wrote:
: >
: > $myhash{'key'} = 12;
: > $myhash{key} = 12;
: >
: > first one is the better way to do it- the second one is a
: > bareword, and if perl6 ever came along and claimed the literal
: > token key as a symbol, your script would fail.
: Sorry, I beg to differ...they are exactly the same.
Sorry, I beg to differ...
: In fact, I would say the
: second one is preferred, because it's cleaner (less punctuation to clutter up
: the screen!)
: Here's my proof:
: 1 #!perl
: 2 @ARGV=qw/hi there/;
: 3
: 4 $foo{shift}='test';
: 5 print keys %foo, "\n";
:
: If you were correct, line 4 would would evaluate "shift" as "hi" (since shift
: with no arguments outside a subroutine shifts the leftmost argument from
: @ARGV) and it would be the same as saying:
: $foo{'hi'} = 'test';
I wish you would have compiled this stuff with '-w' before you posted.
The compiler then spits out the warning:
Ambiguous use of {shift} resolved to {"shift"} at bareword.pl line 4.
: > difference between 'key' and "key": 'key' is literal, whereas "key" will
: > expand nicely if you have $vars, etc. (single quoted prints the literal
: > of everything except \'ed items, so to print a quote character you use
: > '"')
: Sorry, strike 2! Single quoted does NOT interpret backslashes on anything
: except the single quote itself.
[...]
...and the backslash.
: Oh well, at least you're still at bat... :)
You got a looong way before you, buddy ;-)
cu,
Martin
--
| Martin Vorlaender | VMS & WNT programmer
Ceterum censeo | work: mv@pdv-systeme.de
Redmondem delendam esse. | http://www.pdv-systeme.de/users/martinv/
| home: martin@radiogaga.harz.de
------------------------------
Date: Sun, 12 Apr 1998 23:48:38 -0400
From: "Bob Gwynne" <gwynne@utkux.utk.edu>
Subject: Re: MacPerl standalone apps
Message-Id: <6gs20i$att$1@gaia.ns.utk.edu>
Chris Nandor has a MacPerl book temporarily available at
http://freebie.cfcl.com/macperl/ptf_book/HTML/
See Chapter 11. That chapter and others in the book should answer your
question.
Bob Gwynne
tchurch@gmu.edu wrote in message <6glk34$o6k$1@nnrp1.dejanews.com>...
>I have a script written in MacPerl. If I save it as a standalone
application,
>I have to copy all of the libraries that it uses to a the location where
the
>application exists! How can I get MacPerl to save all of the relevent
>functions inside the standalone app?
>
>-----== Posted via Deja News, The Leader in Internet Discussion ==-----
>http://www.dejanews.com/ Now offering spam-free web-based newsreading
------------------------------
Date: Mon, 13 Apr 1998 04:39:54 GMT
From: John Compe <banman@wwdg.com>
Subject: MDB and Perl
Message-Id: <353194A3.4AE0@wwdg.com>
I've recently been making a simple CGI application to add a user to a
database with their email address as a field, then add a pass to the
email address.. well for some reason I keep getting hung on this script
which will add the password: (the database works fine as does the
process_cgi.pl):
#!/usr/bin/perl
require("process_cgi.pl");
&parse_input(*fields);
dbmopen (%users, "users", 0666);
&print_header;
if (!defined($users{$fields{'email'}})) {
print "The email address doesn't exist in the database.";
}
# This is the line I get hung on every time, even if I enter an
# illegal password or whatnot.
elsif (!($users{$fields{'email'}} =~ /::yes$|::no$/)) {
print "There's already a password regged for that address.\n";
}
# If I enter an illegal password it wont hit this line, or anything
# else. Just hangs on that one above ^^
elsif (!($fields{'pass1'} =~ /^[a-zA-Z0-9]{5,10}$/)) {
print "An illegal password!";
}
elsif ($fields{'pass1'} ne $fields {'pass2'}) {
print "passwords dont' match";
}
else {
$users{$fields{'email'}} .= "::$fields{'pass1'}";
print "YAAY, added the password!!!";
}
------------------------------
Date: 13 Apr 1998 04:56:56 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: Numeric validation
Message-Id: <6gs5uo$rrp$1@marina.cinenet.net>
ppp-support (ppp-support@canelle.telecom.uqam.ca) wrote:
: Abigail wrote:
: > If you don't understand the faq, how would you know the emailed
: > suggestion does what you are looking for?
:
: Ok, it's so simple! The email suggestion work with my code, the results
: is what i want, multiple testing shows everythings works fine, etc...
: and all your answers do not.
You see, that's the part Abigail and I don't understand. The solution
you got in email (/^[0-9]+$/) is *identical* in behavior to one of the
solutions provided by the faq (/^\d+$/). We're trying to figure out how
it can be that the former works for you but the latter doesn't.
: You simply want to prove that you know the
: Faq more than a beginner like me. If you want to help, its fine... but
: if you just look for an argument, no time for
: that thank you.
Actually, I'm hoping to improve the faq and also to help you learn about
regexes. Sorry I bothered on the latter part.
---------------------------------------------------------------------
| Craig Berry - cberry@cinenet.net
--*-- Home Page: http://www.cinenet.net/users/cberry/home.html
| Member of The HTML Writers Guild: http://www.hwg.org/
"Every man and every woman is a star."
------------------------------
Date: Sun, 12 Apr 1998 23:02:39 -0400
From: Ronald J Kimball <rjk@coos.dartmouth.edu>
Subject: Re: Packing?
Message-Id: <35318050.8F9BAA4A@coos.dartmouth.edu>
skippy dumbrowski wrote:
>
> sub GetNewSid {
> my ($rh,$ra);
> $rh = $ENV{'REMOTE_HOST'};
> $ra = $ENV{'REMOTE_ADDR'};
> $rh =~ s/\.//g; # strip out all dots from $rh
> $ra =~ s/\.//g; # strip out all dots from $ra
> return ("$rh$ra");
> }
That would be shorter and more efficient if you wrote it like this:
sub GetNewSid {
my $sid = $ENV{'REMOTE_HOST'} . $ENV{'REMOTE_ADDR'};
$sid =~ tr/.//d;
return $sid;
}
--
_ / ' _ / - aka - rjk@coos.dartmouth.edu
( /)//)//)(//)/( Ronald J. Kimball chipmunk@m-net.arbornet.org
/ http://www.ziplink.net/~rjk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: Sun, 12 Apr 1998 22:02:43 +0000
From: Richard Karpinski <dick@cfcl.com>
Subject: Profiling Perl code
Message-Id: <35313A04.275@cfcl.com>
Ilya Zakharevich wrote:
> > Perl programs: CPU time, I/O requests, RAM consumption. Are there known
> > ways either to profile Perl scripts or even to get access to the raw data?
>
> a) DProf and friends;
> b) trace/whatever-is-the-name-on-your-system
> c) PERL_DEBUG_MSTATS and -DL (both with strings attached)
How do I find out more about these things? CPAN? Camel book? FAQ?
Dick
------------------------------
Date: Sun, 12 Apr 1998 22:09:52 +0000
From: Richard Karpinski <dick@cfcl.com>
Subject: Re: Profiling resource use
Message-Id: <35313BB1.2D62@cfcl.com>
Eric Bohlman wrote:
>> Perl programs: CPU time, I/O requests, RAM consumption.
>
> I'd say that the Benchmark module is "known," given that it comes with
> the standard distribution. Is there anything you want to do that you
> can't do with it?
Known it is. But it does none of what I need. The one second
resolution is useless for in vivo testing. The perldoc says
nothing about measuring I/O or RAM consumption. Perhaps there
is another game in town.
Dick
------------------------------
Date: Mon, 13 Apr 1998 03:49:18 GMT
From: Bill 'Sneex' Jones <sneaker@earthling.net>
Subject: Re: Q: Form CGI script and sender's e-mail address
Message-Id: <353189B5.79CE54B9@earthling.net>
Hitman wrote:
> How do I modify a part of the script (below) so that the sender's e-mail
> address will automatically be sent to me instead of
> Internet.User@43.Cyberhost.net?
>
> read(STDIN, $namevalues, $ENV{'CONTENT_LENGTH'});
> open (MAIL, "|$mailprog $youmail") || die "Can't open $mailprog!\n";
> print MAIL ("To: $youmail\n");
> print MAIL ("From: Internet User\n");
> print MAIL ("Subject: Form Response\n\n");
>
> Any help is greatly appreciated, Chris Hendee
Having read the thread BEFORE posting and having written a few CGI
mailer's, good or bad, myself - I would honestly say that unless you ask the
Internet User for his/her e-mail address and then using the appropriate
switches for the mailer in question - I don't think CGI can determine the
Internet Users e-mail address - not unless there are aspects of CGI I am not
aware of...
So, unless you know the Internet Users e-mail address, there isn't anything
you can do...
Sorry,
Sneex
--
__________________________
Bill Jones...............|
Sneaker's Nest...........|
Chasecreek Systemhouse...|
------------------------------
Date: Mon, 13 Apr 1998 05:45:12 GMT
From: John Taylor-Johnston <eslcafe@callisto.si.usherb.ca>
Subject: sendmail substitute for Macperl using "use Net::SMTP"
Message-Id: <32FD5C80.5837@callisto.si.usherb.ca>
I'm trying to overcome the lack of a sendmail programme for Macperl.
Someone suggested using "use Net::SMTP".
I've debugged the script (at the bottom) and here is the result. I've
tried playing around with it, but no luck. This syntax is new to me.
Below you will find 2 debug reports. The first is the Macperl debug
report. The second is what netscape gave me (running the net::smpt debug
value). And last you will find the exact script I used.
From what I can see, it must be a syntax error in the script. The
server accepts the smpt call but ... you'll see ...
You can run the script from:
http://www.antoine-girouard.qc.ca/English/test/test.cgi
______________ Debug report Printed by Netscape _______________________
Diagnostic Output
# Ambiguous use of {index} resolved to {"index"}.
File 'Server HD:MacPerl D:lib:Mac:InternetConfig.pm'; Line 501
# Ambiguous use of {index} resolved to {"index"}.
File 'Server HD:MacPerl D:lib:Mac:InternetConfig.pm'; Line 503
# Ambiguous use of {index} resolved to {"index"}.
File 'Server HD:MacPerl D:lib:Mac:InternetConfig.pm'; Line 509
# Use of uninitialized value.
File 'Server HD:MacPerl D:lib:Mac:Types.pm'; Line 68
# Use of uninitialized value.
File 'Server HD:MacPerl D:lib:Mac:Types.pm'; Line 68
# Use of uninitialized value.
File 'Server HD:MacPerl D:lib:Mac:Types.pm'; Line 68
# Use of uninitialized value.
File 'Server HD:MacPerl D:lib:Mac:Types.pm'; Line 68
# Use of uninitialized value.
File 'Server HD:MacPerl D:lib:Mac:Types.pm'; Line 68
# Use of uninitialized value.
File 'Server HD:MacPerl D:lib:Mac:Types.pm'; Line 56
# Use of uninitialized value.
File 'Server HD:MacPerl D:lib:Mac:Types.pm'; Line 56
Net::SMTP: Net::SMTP(1.01)
Net::SMTP: Net::Cmd(2.0801)
Net::SMTP: Exporter
Net::SMTP: IO::Socket::INET
Net::SMTP: IO::Socket(1.1602)
Net::SMTP: IO::Handle(1.1504)
Net::SMTP=GLOB(0x24dc2d8)<<< 220 antoine-girouard.qc.ca running Eudora
Internet Mail Server 2.0
Net::SMTP=GLOB(0x24dc2d8)>>> EHLO mail.com
Net::SMTP=GLOB(0x24dc2d8)<<< 250-antoine-girouard.qc.ca hello mail.com
(209.47.219.2)
Net::SMTP=GLOB(0x24dc2d8)<<< 250-EXPN
Net::SMTP=GLOB(0x24dc2d8)<<< 250-PIPELINING
Net::SMTP=GLOB(0x24dc2d8)<<< 250-BINARYMIME
Net::SMTP=GLOB(0x24dc2d8)<<< 250-CHUNKING
Net::SMTP=GLOB(0x24dc2d8)<<< 250-ENHANCEDSTATUSCODES
Net::SMTP=GLOB(0x24dc2d8)<<< 250-ETRN
Net::SMTP=GLOB(0x24dc2d8)<<< 250 SIZE 2147483647
Net::SMTP=GLOB(0x24dc2d8)>>> MAIL FROM:
Net::SMTP=GLOB(0x24dc2d8)<<< 250 2.1.5 sender OK
Net::SMTP=GLOB(0x24dc2d8)>>> RCPT TO:<$email>
Net::SMTP=GLOB(0x24dc2d8)<<< 550 5.1.1 user
$email@antoine-girouard.qc.ca not known
Net::SMTP=GLOB(0x24dc2d8)>>> DATA
Net::SMTP=GLOB(0x24dc2d8)<<< 554 5.5.0 no valid recipients specified
Net::SMTP=GLOB(0x24dc2d8)>>> To: jtjohnston@antoine-girouard.qc.ca
Net::SMTP=GLOB(0x24dc2d8)>>>
Net::SMTP=GLOB(0x24dc2d8)>>> A simple test message
Net::SMTP=GLOB(0x24dc2d8)>>> .
Net::SMTP=GLOB(0x24dc2d8)<<< 500 5.5.1 unrecognised command To:
jtjohnston@antoine-girouard.qc.ca
Net::SMTP=GLOB(0x24dc2d8)>>> QUIT
Net::SMTP=GLOB(0x24dc2d8)<<< 500 5.5.1 unrecognised command
Net::SMTP=GLOB(0x24dc2d8)>>> QUIT
Net::SMTP=GLOB(0x24dc2d8)<<< 500 5.5.1 unrecognised command A simple
test message
_________________ Debug report from Macperl ___________________________
Net::SMTP: Net::SMTP(1.01)
Net::SMTP: Net::Cmd(2.0801)
Net::SMTP: Exporter
Net::SMTP: IO::Socket::INET
Net::SMTP: IO::Socket(1.1602)
Net::SMTP: IO::Handle(1.1504)
Net::SMTP=GLOB(0x14b1098)<<< 220 antoine-girouard.qc.ca running Eudora
Internet Mail Server 2.0
Net::SMTP=GLOB(0x14b1098)>>> EHLO
Net::SMTP=GLOB(0x14b1098)<<< 250-antoine-girouard.qc.ca hello
(209.47.219.241)
Net::SMTP=GLOB(0x14b1098)<<< 250-EXPN
Net::SMTP=GLOB(0x14b1098)<<< 250-PIPELINING
Net::SMTP=GLOB(0x14b1098)<<< 250-BINARYMIME
Net::SMTP=GLOB(0x14b1098)<<< 250-CHUNKING
Net::SMTP=GLOB(0x14b1098)<<< 250-ENHANCEDSTATUSCODES
Net::SMTP=GLOB(0x14b1098)<<< 250-ETRN
Net::SMTP=GLOB(0x14b1098)<<< 250 SIZE 2147483647
Net::SMTP=GLOB(0x14b1098)>>> MAIL FROM:<Profs 2e>
Net::SMTP=GLOB(0x14b1098)<<< 550 5.1.1 user not known
Net::SMTP=GLOB(0x14b1098)>>> RCPT TO:<$email>
Net::SMTP=GLOB(0x14b1098)<<< 500 5.5.1 command out of sequence RCPT
TO:<$email>
Net::SMTP=GLOB(0x14b1098)>>> DATA
Net::SMTP=GLOB(0x14b1098)<<< 500 5.5.1 unrecognised command DATA
Net::SMTP=GLOB(0x14b1098)>>> To: jtjohnston@antoine-girouard.qc.ca
Net::SMTP=GLOB(0x14b1098)>>>
Net::SMTP=GLOB(0x14b1098)>>> A simple test message
Net::SMTP=GLOB(0x14b1098)>>> .
Net::SMTP=GLOB(0x14b1098)<<< 500 5.5.1 unrecognised command To:
jtjohnston@antoine-girouard.qc.ca
Net::SMTP=GLOB(0x14b1098)>>> QUIT
Net::SMTP=GLOB(0x14b1098)<<< 500 5.5.1 unrecognised command
Net::SMTP=GLOB(0x14b1098)>>> QUIT
Net::SMTP=GLOB(0x14b1098)<<< 500 5.5.1 unrecognised command A simple
test message
__________________________________________________
#!perl -w
$email = "jtjohnston\@antoine-girouard.qc.ca";
use Net::SMTP;
$smtp = Net::SMTP->new('mail.antoine-girouard.qc.ca', Debug => 1);
$smtp->mail($ENV{USER});
$smtp->to('$email');
$smtp->data();
$smtp->datasend("To: $email\n");
$smtp->datasend("\n");
$smtp->datasend("A simple test message\n");
$smtp->dataend();
$smtp->quit;
exit;
------------------------------
Date: 8 Mar 97 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 8 Mar 97)
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.misc (and this Digest), send your
article to perl-users@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.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
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 V8 Issue 2306
**************************************