[23724] in Perl-Users-Digest
Perl-Users Digest, Issue: 5930 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Dec 12 03:05:35 2003
Date: Fri, 12 Dec 2003 00:05:07 -0800 (PST)
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, 12 Dec 2003 Volume: 10 Number: 5930
Today's topics:
Re: @ISA specific to instance rather than class? <tassilo.parseval@rwth-aachen.de>
Re: Calling Another Script (Hobbit HK)
Re: Catching Errors <thesnake_123@-NO-S_P_A_M-hotmail.com>
How to map URL to %xx? <test@test.com>
Re: How to map URL to %xx? <tony_curtis32@_SPAMTRAP_yahoo.com>
Re: How to map URL to %xx? <test@test.com>
Re: How to map URL to %xx? <uri@stemsystems.com>
Re: How to map URL to %xx? <matthew.garrish@sympatico.ca>
Re: LWP install MacOS X <spamfilter@dot-app.org>
Re: LWP install MacOS X <henryn@zzzspacebbs.com>
Re: LWP install MacOS X <spamfilter@dot-app.org>
MAKE MONEY!!! MAKE THOUSANDS!!! <qhudan122@rogers.com>
Re: Need programmers? At Colance they compete for your <matthew.garrish@sympatico.ca>
Re: Newsgroup Searching Program <gerardlanois@netscape.net>
Re: PAR / Post install problem / bad signature ... <kalinaubears@iinet.net.au>
Re: perlcc <kalinaubears@iinet.net.au>
Re: Server-side script executed on page load or event, <spamfilter@dot-app.org>
Re: Sorting dates...Argument "" isn't numeric (Tad McClellan)
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 12 Dec 2003 07:30:48 GMT
From: "Tassilo v. Parseval" <tassilo.parseval@rwth-aachen.de>
Subject: Re: @ISA specific to instance rather than class?
Message-Id: <brbqr8$mb0$1@nets3.rz.RWTH-Aachen.DE>
Also sprach Matthew Braid:
> I'm streamlining one of my own packages by splitting off optional
> functionality into sub-packages and only use base'ing them when
> required, eg:
>
> sub use_something {
> my $self = shift;
> eval {use base qw/My::Package::Something/};
> die $@ if $@;
> return 1;
> }
>
> This works well, but it means that once one instance of the class uses
> the 'something', then all of them have it loaded on creation.
>
> I'm not worried about this, but I was wondering if there is a way to
> make an instance of an object use an extra base package without the
> whole class doing so.
Not really, no. But what you can do is creating a new class on the fly
with the desired characteristics and rebless your object into this
class:
sub make_subclass_of {
my ($self, @classes) = @_;
my @chars = ('a' .. 'z');
my $newclass;
$newclass .= $chars[rand @chars] for 1 .. 8;
no strict 'refs';
@{ "__${newclass}::ISA" } = (ref($self), @{ ref($self)."::ISA" }, @classes);
bless $self => "__$newclass";
}
And now you can do
$object->make_subclass_of( qw(Class1 Class2) );
$object is now blessed into a new class which inherits from the previous
class of $object, its superclasses and the two classes Class1 and
Class2. In order to avoid clashes, the new class name is a random string
such as '__lmcpnuvj'. This should ensure that no two objects get
reblessed into the same class although this could of course still happen
by coincidence.
Even though Perl allows such things, I wouldn't recommend them.
Tassilo
--
$_=q#",}])!JAPH!qq(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({
pam{rekcahbus})(rekcah{lrePbus})(lreP{rehtonabus})!JAPH!qq(rehtona{tsuJbus#;
$_=reverse,s+(?<=sub).+q#q!'"qq.\t$&."'!#+sexisexiixesixeseg;y~\n~~dddd;eval
------------------------------
Date: 11 Dec 2003 22:18:50 -0800
From: hobbit_hk@hotmail.com (Hobbit HK)
Subject: Re: Calling Another Script
Message-Id: <22ee5d47.0312112218.441e2fd5@posting.google.com>
"Matt" <nospam.hciss@yahoo.com> wrote in message news:<vthvf9f2ugci8e@corp.supernews.com>...
> I need to have perl script call another script on a Linux box and parse its
> output. When I call this other script it returns between 1 and 100 lines of
> data depending on time of day. So I need to get this data that script
> returns into my script. At the moment all I really need is a count of how
> many lines of data actually. So how would I do that?
>
> Matt
I think that you can do:
@lines=`your_script`;
But don't count on me, wait for other replies from the guys here... :)
------------------------------
Date: Fri, 12 Dec 2003 03:42:38 GMT
From: "-Brad-" <thesnake_123@-NO-S_P_A_M-hotmail.com>
Subject: Re: Catching Errors
Message-Id: <OOaCb.49062$aT.43462@news-server.bigpond.net.au>
Ahh ok thanks for the reply!
Maybe I should make sure I have the latest version of the CGI module
installed.
Cheers
"Gunnar Hjalmarsson" <noreply@gunnar.cc> wrote in message
news:brb4i9$1funq$1@ID-184292.news.uni-berlin.de...
-Brad- wrote:
> Insted of display Server error Id like to display something
> meaningful that will assist me in debuging the problem without
> having to look at the server error log.
> If i use Carp qw(fatalsToBrowser)
Suppose you mean
use CGI::Carp qw(fatalsToBrowser);
> It helps a little, but is there a way I can display similar to what
> would be seen in the error_log,
> eg Missing right curly bracket at line 20.
That is a fatal error, which should be captured by fatalsToBrowser().
Personally I have experienced significant differences in how different
versions of CGI::Carp behaves.
If it's more convenient to you, you may want to keep a 'private' error
log by using the carpout() function. See the CGI::Carp documentation
about how it works.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
------------------------------
Date: Fri, 12 Dec 2003 03:14:35 GMT
From: "Liberal" <test@test.com>
Subject: How to map URL to %xx?
Message-Id: <voaCb.181749$Ec1.6855553@bgtnsc05-news.ops.worldnet.att.net>
I need to map things like http:// to the %xx code. Change none
digital/letter to % then the ASCII value in 16.
It should be a 1 line code.
------------------------------
Date: Thu, 11 Dec 2003 21:22:39 -0600
From: Tony Curtis <tony_curtis32@_SPAMTRAP_yahoo.com>
Subject: Re: How to map URL to %xx?
Message-Id: <87oeueu3cw.fsf@limey.hpcc.uh.edu>
>> On Fri, 12 Dec 2003 03:14:35 GMT,
>> "Liberal" <test@test.com> said:
> I need to map things like http:// to the %xx code. Change
> none digital/letter to % then the ASCII value in 16.
Sounds like you want URI::Escape
> It should be a 1 line code.
Homework, eh?
------------------------------
Date: Fri, 12 Dec 2003 04:00:31 GMT
From: "Liberal" <test@test.com>
Subject: Re: How to map URL to %xx?
Message-Id: <z3bCb.181886$Ec1.6859958@bgtnsc05-news.ops.worldnet.att.net>
$url =~ s/([^\w.-])/sprintf "%%%02X", ord $1/eg;
don't understand it and don't care. it works.
------------------------------
Date: Fri, 12 Dec 2003 04:05:13 GMT
From: Uri Guttman <uri@stemsystems.com>
Subject: Re: How to map URL to %xx?
Message-Id: <x7he063cli.fsf@mail.sysarch.com>
>>>>> "L" == Liberal <test@test.com> writes:
> $url =~ s/([^\w.-])/sprintf "%%%02X", ord $1/eg;
> don't understand it and don't care. it works.
and you will never understand perl thinking like that. good luck with
future homework and all those spammers and crackers who will ream your
homegrown cgi scripts.
$DIETY save us from twits like you who think they should be allowed to
code.
uri
--
Uri Guttman ------ uri@stemsystems.com -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
------------------------------
Date: Fri, 12 Dec 2003 00:09:41 -0500
From: "Matt Garrish" <matthew.garrish@sympatico.ca>
Subject: Re: How to map URL to %xx?
Message-Id: <44cCb.11354$aF2.1246537@news20.bellglobal.com>
"Liberal" <test@test.com> wrote in message
news:z3bCb.181886$Ec1.6859958@bgtnsc05-news.ops.worldnet.att.net...
> $url =~ s/([^\w.-])/sprintf "%%%02X", ord $1/eg;
>
> don't understand it and don't care. it works.
>
You've joined a long tradition of sloppy programmers with that response. And
the standard reply is if you don't know what it's doing, how do you know it
works?
Matt
------------------------------
Date: Fri, 12 Dec 2003 03:28:45 GMT
From: Sherm Pendley <spamfilter@dot-app.org>
Subject: Re: LWP install MacOS X
Message-Id: <NBaCb.13056$NN.2198861@news1.news.adelphia.net>
Henry wrote:
> OK, it's time to go CPAN. Download LWP. No problem. But it won't install
> unless URI, HTML::Parser, MIME::Base64, Net::FTP (libnet), Digest::MD5 and
> maybe some other stuff are already installed.
If you use the CPAN shell (perldoc CPAN), it will manage those
dependencies for you. It'll still need to download and install a bunch
of stuff, which can be time-consuming if you're using a modem. But at
least you won't have to figure out what you need and install it all by hand.
A tip about using CPAN on Jaguar: DON'T take its suggestion and install
Bundle::CPAN. There's a bug in the version of CPAN.pm that's shipped
with Jaguar, that will result in it attempting to upgrade your whole
Perl installation if you do that.
Instead, upgrade just the CPAN module by itself first - "install CPAN"
at the CPAN shell. Once you have the latest CPAN module, it's safe to
use it to install all the other goodies with "install Bundle::CPAN".
Another tip: When CPAN is configuring itself, it will ask you a series
of questions. Some of them need y/n answers, but others need directory
paths. A very common mistake is to fall into a rythm of answering "y" to
every question, and then accidentally entering "y" when a question that
needs a directory path comes up.
> "... MakeMaker could not find "/System/Library/Perl/darwin/CORE/perl.h"
>
> Googling on this filename ... Some helpful person has posted the answer: I
> need the MacOS X Developer Tools
Yes, you do. Many Perl modules are wrappers around binary libraries, and
among other things, you'll need GCC - the C compiler included with the
dev tools - to compile those wrappers.
>, I'm likely to end up fighting a case-sensitivity issue
It's not much of a fight. More like a mild argument. ;-)
When the LWP module asks if you want to install /usr/bin/HEAD, just say
no. If you answer yes, it will overwrite /usr/bin/head, because HFS is
not case sensitive.
If you want to play it extra-safe, make a copy of /usr/bin/head. That
way, if you wind up replacing it with LWP's HEAD, you can easily restore
it from your backup copy.
sherm--
------------------------------
Date: Fri, 12 Dec 2003 04:59:17 GMT
From: Henry <henryn@zzzspacebbs.com>
Subject: Re: LWP install MacOS X
Message-Id: <BBFE8B22.1930E%henryn@zzzspacebbs.com>
Sherm:
Thanks for your response on this thread:
in article NBaCb.13056$NN.2198861@news1.news.adelphia.net, Sherm Pendley at
spamfilter@dot-app.org wrote on 12/11/03 7:28 PM:
> Henry wrote:
>
>> OK, it's time to go CPAN. Download LWP. No problem. But it won't install
>> unless URI, HTML::Parser, MIME::Base64, Net::FTP (libnet), Digest::MD5 and
>> maybe some other stuff are already installed.
>
> If you use the CPAN shell (perldoc CPAN), it will manage those
> dependencies for you. It'll still need to download and install a bunch
> of stuff, which can be time-consuming if you're using a modem. But at
> least you won't have to figure out what you need and install it all by hand.
Yeah, I tried that, too. A truly daunting amount of output, some of it a
bit scary. I guess one answers the questions (per your comments below) and
cover one's eyes during the progress messages. When it fails, you go back
and try to discover why.
Of course, again as per below, without the right ingredients, this recipe
fails, too.
>
> A tip about using CPAN on Jaguar: DON'T take its suggestion and install
> Bundle::CPAN. There's a bug in the version of CPAN.pm that's shipped
> with Jaguar, that will result in it attempting to upgrade your whole
> Perl installation if you do that.
OK. I hope I didn't do that. $%*$%!@@$!$, the console has scrolled so far
that's all fallen off the end.
>
> Instead, upgrade just the CPAN module by itself first - "install CPAN"
> at the CPAN shell. Once you have the latest CPAN module, it's safe to
> use it to install all the other goodies with "install Bundle::CPAN".
Hmmm, I don't think I did that, so maybe I correctly focused on the
(hopeless) task at hand.
>
> Another tip: When CPAN is configuring itself, it will ask you a series
> of questions. Some of them need y/n answers, but others need directory
> paths. A very common mistake is to fall into a rythm of answering "y" to
> every question, and then accidentally entering "y" when a question that
> needs a directory path comes up.
OK, got it. Thanks.
>
>> "... MakeMaker could not find "/System/Library/Perl/darwin/CORE/perl.h"
>>
>> Googling on this filename ... Some helpful person has posted the answer: I
>> need the MacOS X Developer Tools
>
> Yes, you do. Many Perl modules are wrappers around binary libraries, and
> among other things, you'll need GCC - the C compiler included with the
> dev tools - to compile those wrappers.
Right. I speak GCC, at least in other environments, so there's no
fundamental issue here. But I'm really surprised that I need to load the
better part of 1 GB of stuff to make a couple of standard(!) modules. Is
there no way to distribute these as binaries?
I'm not allergic to development tools, not at all, but I try to not get
unnecessarily entangled, unless I'm doing relevant ... development. I'm
not! No, I'm trying to use some standard modules in some completely
unrelated development It seems strange.
Strange or not, I went ahead and installed the development tools already
earlier today -- takes a while. When I return to this tomorrow, this should
all work perfectly, yes? (Right!)
>
>> , I'm likely to end up fighting a case-sensitivity issue
>
> It's not much of a fight. More like a mild argument. ;-)
>
> When the LWP module asks if you want to install /usr/bin/HEAD, just say
> no. If you answer yes, it will overwrite /usr/bin/head, because HFS is
> not case sensitive.
"Just say no" eh? OK.
>
> If you want to play it extra-safe, make a copy of /usr/bin/head. That
> way, if you wind up replacing it with LWP's HEAD, you can easily restore
> it from your backup copy.
Understood.
I'm also surprised this entire issue isn't better documented. Maybe I
missed something, but I did give it a good try -- several hours of hard
searching-- and came up mostly empty.
It should be clearer, in the general case of how modules are maintained and
ported, and I'm surprised there's not more specific information for MacOS
X. Or have I missed a great treasure-trove of docs?
Thanks,
Henry
>
> sherm--
------------------------------
Date: Fri, 12 Dec 2003 06:41:50 GMT
From: Sherm Pendley <spamfilter@dot-app.org>
Subject: Re: LWP install MacOS X
Message-Id: <OqdCb.4$xH2.8717@news1.news.adelphia.net>
Henry wrote:
> $%*$%!@@$!$, the console has scrolled so far
> that's all fallen off the end.
That reminds me of another tip - I always go into Terminal.app's
preferences, and set the scrollback buffer to "unlimited." As you said,
the output from the build/install process can be verbose, and if it
fails you'll want to be able to review it from the beginning.
> Right. I speak GCC, at least in other environments, so there's no
> fundamental issue here. But I'm really surprised that I need to load the
> better part of 1 GB of stuff to make a couple of standard(!) modules. Is
> there no way to distribute these as binaries?
Fink has some pre-rolled modules packages, but I think they're all for
modules that have a binary component. IIRC, they don't have an LWP package.
Distributing binaries is also complicated by the fact that Panther ships
with Perl 5.8.1 - which is not binary-compatible with 5.6. Modules that
include compiled C code, which were compiled for 5.6 don't work with
5.8, and vice-versa. Anyone who creates binary packages has to create
them for both versions - and deal with the inevitable support issues
arising from users who install the wrong one.
> I'm also surprised this entire issue isn't better documented. Maybe I
> missed something, but I did give it a good try -- several hours of hard
> searching-- and came up mostly empty.
A lot of the relevant discussion takes place on the macosx@perl.org
mailing list - you can (un)subscribe and/or search the archives at
<http://lists.perl.org>.
> It should be clearer, in the general case of how modules are maintained and
> ported, and I'm surprised there's not more specific information for MacOS
> X. Or have I missed a great treasure-trove of docs?
One obstacle is that there isn't really a general case that applies to
all modules. The issue with HEAD vs. head, for example, only applies to
LWP - I don't know of any other module that attempts to install a file
where the file name is different from that of a system file only in
capitalization. And, the "don't install Bundle::CPAN" bug is not only
unique to CPAN.pm, but to a specific version of that module.
sherm--
------------------------------
Date: Fri, 12 Dec 2003 05:04:28 GMT
From: "$$Man" <qhudan122@rogers.com>
Subject: MAKE MONEY!!! MAKE THOUSANDS!!!
Message-Id: <w%bCb.70646$r%u1.34006@twister01.bloor.is.net.cable.rogers.com>
I found this on a bulletin board and decided to try it: A little while back, I was browsing through news groups and e-mails, just like you are now, and came across an article similar to this that said you can make thousands of dollars within weeks with only an initial investment of $6.00!! So, I thought, "Yeah right, this must be a scam," but like most of us, I was curious, so I KEPT reading. Anyway, it said that you send $1.00 to each of the six names and addresses stated in the article. You then place your own name and address in the bottom of the list at $6.00, and post the article in at least 200 news groups. (There are thousands) No catch, that was it. So after thinking it over, and talking to a few people first, I thought about trying it. I figured, "What have I got to lose; except six stamps and $6.00 right, right?" Then I invested the measly $6.00.
WELL GUESS WHAT!!!
Within seven days, I started getting money in the mail!! I was shocked!! I figured it would end soon, but the money just kept coming in. In my first week, I made about $25.00. By the end of the second week I had made a total of more than $1000.00!! In the third week I had more than $10,000.00 and it's still growing!! This is now my fourth week and I have made a total of $42,000.00 and it's still coming rapidly. It's certainly worth $6.00 and six stamps, and I have spent more than that on the lottery without ever winning!!!
Let me tell you how this works and most important, why it works.......... also make sure you print this out NOW, so you can get the information off of it, as you will need it. I promise you that if you follow the directions exactly that you will start making more money than you thought possible by doing something so easy!!
Suggestion: Read this entire message carefully!! (Print it out or download it)
Follow the simple directions and watch the money come in!! It's easy. It's legal. And, your investment is only $6.00 (Plus postage)!!!
IMPORTANT:
This is not a rip-off, it is decent; it's legal; and it is virtually no risk - it really works!! If all the following instructions are adhered to, you will receive extraordinary dividends.
PLEASE NOTE:
Please follow the directions EXACTLY, and $50,000 or more can be yours in 20 to 60 days. This program remains successful because of the honesty and integrity of the participants. Please continue its success by carefully adhering to the instructions. You will now become apart of the Mail Order business. You are in the business of developing Mailing Lists. Many large corporations are happy to pay big bucks for quality lists. However, the money made from the mailing lists is secondary to income, which is made from people like you and me asking to be included in that list. Here are the four easy steps to success.
STEP ONE: Get six separate pieces of paper and write the following on each piece of paper "PLEASE PUT ME ON YOUR MAILING LIST." Now get 6 U.S. $1.00 bills and place ONE inside of EACH of the six pieces of paper so the bill will not be seen through the envelope (to prevent thievery). Next, place one paper in each of the six envelopes and seal them. You now should have six sealed envelopes, each with a piece of paper stating the above phrase, your name and address, and a $1.00 bill. What you are doing is creating a service.
THIS IS ABSOLUTELY LEGAL!!!!!
You are requesting a legitimate service and you are paying for it!! Like most of us I was a little skeptical and little worried about the legal aspects of it all. So I checked it out with the U.S. Post Office (1-800-238-5355) and they confirmed that it is indeed legal!!
Mail the six envelopes to the following addresses:
1) Andreas Swart
Hoornschediep 11
9727 GA Groningen, The Netherlands
2) W. Edens
4829 Bud Ln
Lexington, KY 40514
3) L.Lessard
40 Martins Ferry Rd
Hooksett,NH 03106
4) J. Safian
6950 W. Forest Presrv. Dr., #115
Norridge, IL 60706-1324
5) G. Takla
690 Adelaide Avenue East
Oshawa, Ontario, L1G 2A8
6) Q. Huda
1212- 1315 Bough Beeches Blvd.
Mississauga, Ontario, L4W 4A1
STEP TWO: Now take the #1 name off the list that you see above, move the other names up (six becomes 5, 5 becomes 4, and etc.) and add YOUR NAME as number 6 on the list.
STEP THREE: Change anything you need to but try to keep this article as close to original as possible. Now post your amended article to at least 200 news groups. :
(I think there are close to 24,000 groups) All you need is 200, but remember, the more you post, the more money you make!! This is perfectly legal!! If you have any doubts, refer to Title 18 Sec. 1302 & 1341 of the Postal Lottery laws. Keep a copy of these steps for yourself and whenever you need money, you can use it again, and again. PLEASE REMEMBER that this program remains successful because of the honesty and integrity of the participants and by their carefully adhering to directions. Look at it this way. If you were of integrity, the program will continue and the money that so many others have received will come your way.
NOTE: You may want to retain every name and address sent to you, either on a computer or hard copy and keep the notes people send you. This VERIFIES that you are truly providing a service. (Also, it might be a good idea to wrap the $1 bill in dark paper to reduce the risk of mail theft). So, as each post is downloaded and the directions carefully followed, all members will be reimbursed for their participation as a List Developer with one dollar each. Your name will move up the list geometrically so that when your name reaches the #1 position you will be receiving thousands of dollars in CASH!!! What an opportunity for only $6.00 ($1.00 for each of the first six people listed above) Send it now, add your own name to the list and you're in business!!!
*****DIRECTIONS FOR HOW TO POST TO NEWS GROUPS!!!*****
STEP ONE: You do not need to re-type this entire letter to do your own posting. Simply put your cursor at the beginning of this letter and drag your cursor to the bottom of this document, and select 'copy' from the edit menu. This will copy the entire letter into the computer's memory.
STEP TWO: Open a blank 'notepad' file and place your cursor at the top of the blank page. From the 'edit' menu select 'paste'. This will paste a copy of the letter into the notepad so that you will add your name to the list.
STEP THREE: Save your new notepad file as a text file. If you want to do your posting in different settings, you'll always have this file to go back to.
STEP FOUR: You can use a program like "postXpert" to post to all the newsgroups at once. You can find this program at <http://www.download.com>. If you don't understand how it works you can email me at: mailto:andreass@orange.nl (this is only when my name is in the list, so send a copy of my address as well. put this in the header: make millions very easy + my full name)
Use Netscape or Internet Explorer and try searching for various new groups (on- line forums, message boards, chat sites, discussions.)
STEP FIVE: Visit message boards and post this article as a new message by highlighting the text of this letter and selecting paste from the edit menu. Fill in the subject, this will be the header that everyone sees as they scroll through the list of postings in a particular group, click the post message button. You're done.
Congratulations!!!!!!
THAT'S IT!! All you have to do, and It Really works!!!
Best Wishes
------------------------------
Date: Thu, 11 Dec 2003 20:45:08 -0500
From: "Matt Garrish" <matthew.garrish@sympatico.ca>
Subject: Re: Need programmers? At Colance they compete for your business. luw8f
Message-Id: <l49Cb.10491$aF2.1164050@news20.bellglobal.com>
"Gunnar Hjalmarsson" <noreply@gunnar.cc> wrote in message
news:brb552$lu3s$1@ID-184292.news.uni-berlin.de...
> MPBroida wrote:
> > Go to Colance.com, click on "Report Violations" (at the bottom) and
> > send a nice message to the company. Remember it might NOT be a
> > real Colance person posting this crap, so keep your message
> > generally polite. Just inform them that SOMEONE is tarnishing
> > their image by spamming the newsgroups.
>
> Suppose you did just that. How on earth would if make a difference if
> a lot of other people did as well?
>
Agreed. It's much easier to just filter anything with colance in it straight
to cyber-heaven...
Matt
------------------------------
Date: Fri, 12 Dec 2003 06:33:05 GMT
From: Gerard Lanois <gerardlanois@netscape.net>
Subject: Re: Newsgroup Searching Program
Message-Id: <u8yli1r6k.fsf@netscape.net>
Les Hazelton <seawolf@attglobal.net> writes:
> I need to supply a port number on the target system to enable the
> secure connection.
>
> I have searched this news group, google and CPAN looking for information
> on providing a port number for the connection and no luck. Can you point
> me in the right direction?
$nntp = Net::NNTP->new($hostname, Port => $portnum);
The Port argument is not in the Net::NNTP documentation, but if you
look at the constructor ('new') you'll see Port being passed to
IO:Socket::INET as PeerPort.
-Gerard
http://home.san.rr.com/lanois/perl/
------------------------------
Date: Fri, 12 Dec 2003 16:55:59 +1100
From: Sisyphus <kalinaubears@iinet.net.au>
Subject: Re: PAR / Post install problem / bad signature ...
Message-Id: <3fd9593e$0$1724$5a62ac22@freenews.iinet.net.au>
Iain wrote:
> Simon Andrews wrote:
>
>> Iain wrote:
>>
>>> Any PAR users out there?
>>>
>>> I've just built and tested PAR and most things are fine but for one
>>> niggling little issue that isn't addressed by PAR::FAQ.
>>>
>>> My resulting standalone binary runs okay but spews forth warnings
>>> like this one:
>>>
>>> format error: bad signature: 0x6174545f at offset 78727 in file
>>> IO::File=GLOB(0x8455f04)
>>> at /path/to/Module.pm line 7
>>
>>
>>
>> This is a bug which was introduced with the latest update to
>> Archive::Zip (v 1.09). The zip file has a checksum cacluated, but PAR
>> adds some loader code to the front of it causing the checksum to be
>> invalid when the archive is extracted.
>>
>> A fix should hopefully be present in Archive::Zip 1.10 and PAR 0.77,
>> but for now you can lose the warning by downgrading Archive::Zip to an
>> older verison.
>>
>
> Wound it back to Archive::Zip 1.06 and it works fine.
>
> PAR... it's a beautiful, beautiful thing :-)
>
> Thanks,
> Iain.
You can now get a patched version of par (that addresses the A::Z-1.09
issue) from:
http://aut.dyndns.org/dist/PAR-0.76_98.tar.gz
Cheers,
Rob
--
To reply by email u have to take out the u in kalinaubears.
------------------------------
Date: Fri, 12 Dec 2003 16:51:15 +1100
From: Sisyphus <kalinaubears@iinet.net.au>
Subject: Re: perlcc
Message-Id: <3fd95822$0$1724$5a62ac22@freenews.iinet.net.au>
Alan Stewart wrote:
>
>
> If you have Archive::Zip version 1.09 (latest version), there is a
> known bug with PAR version 0.76 that causes that error message. The
> author has a possible fix testing now and should produce PAR 0.77 real
> soon. PAR is worth waiting for...
>
I see a fix for this has just been released. You can get it from:
http://aut.dyndns.org/dist/PAR-0.76_98.tar.gz
Cheers,
Rob
--
To reply by email u have to take out the u in kalinaubears.
------------------------------
Date: Fri, 12 Dec 2003 03:08:40 GMT
From: Sherm Pendley <spamfilter@dot-app.org>
Subject: Re: Server-side script executed on page load or event, but not SSI
Message-Id: <YiaCb.13039$NN.2195648@news1.news.adelphia.net>
Henry wrote:
> Wow, as a newcomer to this technology (I'm an embedded systems designer) it
> seems awfully chaotic.
It can be. ;-)
> Can you give me a sentence or two on why this is so?
> Is it a matter of creativity or commercial interests trying to build in
> market share, or what?
The 'net standards process essentially broke down in the mid-1990's,
when commercial interests became involved. Before that, there was
certainly some pride and ego involved, but for the most part people
generally worked hard to maintain a high level of compatibility between
various implementations of a given protocol.
With the "browser wars," both NS and MS began introducing new "features"
without even attempting to negotiate how they would work with others'
products. Basically, both companies wanted exclusive control over the
direction of web technology development, which would place the loser in
a position of constantly having to play "catch-up."
sherm--
------------------------------
Date: Thu, 11 Dec 2003 22:57:34 -0600
From: tadmc@augustmail.com (Tad McClellan)
Subject: Re: Sorting dates...Argument "" isn't numeric
Message-Id: <slrnbtiilu.1pa.tadmc@magna.augustmail.com>
Michele Dondi <bik.mido@tiscalinet.it> wrote:
> On Wed, 10 Dec 2003 13:55:23 -0600, tadmc@augustmail.com (Tad
> McClellan) wrote:
>
>> my @sorted = sort datecompare grep length(), @date;
> my @sorted = sort datecompare grep $_, @date; #?
The OP wants to eliminate empty strings from @date so as
to avoid "not numeric" warnings.
That's what my code does.
He does not want to eliminate 0 and '0' as your code would.
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
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 5930
***************************************