[25823] in Perl-Users-Digest
Perl-Users Digest, Issue: 8060 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun May 8 14:05:27 2005
Date: Sun, 8 May 2005 11:05:05 -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 Sun, 8 May 2005 Volume: 10 Number: 8060
Today's topics:
Emacs modules for Perl programming (Jari Aalto+mail.perl)
How can I prevent perl from exiting during a network er (Song Lining)
test proxy <alexj@freesurf.ch>
Re: test proxy <alexj@freesurf.ch>
Re: test proxy <spamtrap@dot-app.org>
Re: test proxy <alexj@freesurf.ch>
Re: test proxy <jurgenex@hotmail.com>
Re: test proxy <alexj@freesurf.ch>
Re: test proxy <noreply@gunnar.cc>
Re: test proxy <jurgenex@hotmail.com>
Re: test proxy <alexj@freesurf.ch>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 08 May 2005 04:29:14 GMT
From: <jari.aalto <AT> poboxes.com> (Jari Aalto+mail.perl)
Subject: Emacs modules for Perl programming
Message-Id: <perl-faq/emacs-lisp-modules_1115526526@rtfm.mit.edu>
Archive-name: perl-faq/emacs-lisp-modules
Posting-Frequency: 2 times a month
URL: http://tiny-tools.sourceforge.net/
Maintainer: Jari Aalto A T poboxes com
Announcement: "What Emacs lisp modules can help with programming Perl"
Preface
Emacs is your friend if you have to do anything comcerning software
development: It offers plug-in modules, written in Emacs lisp
(elisp) language, that makes all your programmings wishes come
true. Please introduce yourself to Emacs and your programming era
will get a new light.
Where to find Emacs/XEmacs
o Unix:
http://www.gnu.org/software/emacs/emacs.html
http://www.xemacs.org/
o Unix Windows port (for Unix die-hards):
install http://www.cygwin.com/ which includes native Emacs 21.x.
and XEmacs port
o Pure Native Windows port
http://www.gnu.org/software/emacs/windows/ntemacs.html
ftp://ftp.xemacs.org/pub/xemacs/windows/setup.exe
o More Emacs resources at
http://tiny-tools.sourceforge.net/ => Emacs resource page
Emacs Perl Modules
Cperl -- Perl programming mode
http://www.cpan.org/modules/by-authors/id/ILYAZ/cperl-mode/
http://math.berkeley.edu/~ilya/software/emacs/
by Ilya Zakharevich
CPerl is major mode for editing perl files. Forget the default
`perl-mode' that comes with Emacs, this is much better. Comes
standard in newest Emacs.
TinyPerl -- Perl related utilities
http://tiny-tools.sourceforge.net/
If you ever wonder how to deal with Perl POD pages or how to find
documentation from all perl manpages, this package is for you.
Couple of keystrokes and all the documentaion is in your hands.
o Instant function help: See documentation of `shift', `pop'...
o Show Perl manual pages in *pod* buffer
o Grep through all Perl manpages (.pod)
o Follow POD references e.g. [perlre] to next pod with RETURN
o Coloured pod pages with `font-lock'
o Separate `tiperl-pod-view-mode' for jumping topics and pages
forward and backward in *pod* buffer.
o Update `$VERSION' variable with YYYY.MMDD on save.
o Load source code into Emacs, like Devel::DProf.pm
o Prepare script (version numbering) and Upload it to PAUSE
o Generate autoload STUBS (Devel::SelfStubber) for you
Perl Module (.pm)
TinyIgrep -- Perl Code browsing and easy grepping
[TinyIgrep is included in Tiny Tools Kit]
To grep from all installed Perl modules, define database to
TinyIgrep. There is example file emacs-rc-tinyigrep.el that shows
how to set up dattabases for Perl5, Perl4 whatever you have
installed
TinyIgrep calls Igrep.el to to do the search, You can adjust
recursive grep options, set search case sensitivity, add user grep
options etc.
You can find latest `igrep.el' module at
<http://groups.google.com/groups?group=gnu.emacs.sources> The
maintainer is Jefin Rodgers <kevinr <AT> ihs.com>.
TinyCompile -- To Browse grep results in Emacs *compile* buffer
TinyCompile is a minor mode for *compile* buffer from where
you can collapse unwanted lines or shorten file URLs:
/asd/asd/asd/asd/ads/as/da/sd/as/as/asd/file1:NNN: MATCHED TEXT
/asd/asd/asd/asd/ads/as/da/sd/as/as/asd/file2:NNN: MATCHED TEXT
-->
cd /asd/asd/asd/asd/ads/as/da/sd/as/as/asd/
file1:NNN: MATCHED TEXT
file1:NNN: MATCHED TEXT
End
------------------------------
Date: 8 May 2005 08:32:47 -0700
From: songlining@gmail.com (Song Lining)
Subject: How can I prevent perl from exiting during a network error?
Message-Id: <fabd4f77.0505080732.428a101a@posting.google.com>
Hi, guys
Got a very frustrating problem while writing a perl socket client to
connect to a server.
The perl client will quit by itself everytime I stop the server and
the errno is either "ECONNRESET: Connection aborted" or "ECONNABORTED:
Connection reset by peer". The problem is that I need to keep the
client alive even the server is shutdown, so I tried to ignore all the
signals in %SIG but that didn't help either. Here's a snipet of the
code:
<code>
...
foreach (keys %SIG) {
print "$_\n";
$SIG{$_} = 'IGNORE';
}
...
...
$sock = new IO::Socket::INET(
PeerAddr => $PeerAddr,
PeerPort => $PeerPort,
Proto => 'tcp',
);
...
...
</code>
As you can see, it's a very simple and straitforward code but how can
it stop exiting??? I think there must be at least one easy way to do
it :)
Any clue would be much appreciated!
Thanks!
Song Lining
------------------------------
Date: Sun, 08 May 2005 16:27:50 +0200
From: Alexandre Jaquet <alexj@freesurf.ch>
Subject: test proxy
Message-Id: <427e21f0$0$1151$5402220f@news.sunrise.ch>
Hi
I need to create a script to test a proxy connection to a specified server.
Any docs ?
Thanks in advance.
Alexandre Jaquet
------------------------------
Date: Sun, 08 May 2005 16:29:13 +0200
From: Alexandre Jaquet <alexj@freesurf.ch>
Subject: Re: test proxy
Message-Id: <427e2243$0$1151$5402220f@news.sunrise.ch>
Alexandre Jaquet a écrit :
> Hi
>
> I need to create a script to test a proxy connection to a specified server.
>
> Any docs ?
>
> Thanks in advance.
>
> Alexandre Jaquet
I develop on windows xp env
------------------------------
Date: Sun, 08 May 2005 10:58:07 -0400
From: Sherm Pendley <spamtrap@dot-app.org>
Subject: Re: test proxy
Message-Id: <heWdnb8OapJitePfRVn-iw@adelphia.com>
Alexandre Jaquet wrote:
> I need to create a script to test a proxy connection to a specified server.
>
> Any docs ?
Depends on the protocol. There are various modules under Net::*. For
HTTP, there's LWP or WWW::Mechanize.
In general, go to:
<http://search.cpan.org>
And search there for the protocol (FTP, SMTP, etc.) you want your tests
to use.
sherm--
--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
------------------------------
Date: Sun, 08 May 2005 17:03:09 +0200
From: Alexandre Jaquet <alexj@freesurf.ch>
Subject: Re: test proxy
Message-Id: <427e2a36$0$1154$5402220f@news.sunrise.ch>
Sherm Pendley a écrit :
> Alexandre Jaquet wrote:
>
>> I need to create a script to test a proxy connection to a specified
>> server.
>>
>> Any docs ?
>
>
> Depends on the protocol. There are various modules under Net::*. For
> HTTP, there's LWP or WWW::Mechanize.
>
> In general, go to:
> <http://search.cpan.org>
>
> And search there for the protocol (FTP, SMTP, etc.) you want your tests
> to use.
>
> sherm--
>
thanks but I want to understand the whole processe from the sockets
connection creation and how the data are passed from localhost to proxy
server to host
thx
------------------------------
Date: Sun, 08 May 2005 15:03:47 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: test proxy
Message-Id: <nTpfe.3040$941.2644@trnddc08>
Alexandre Jaquet wrote:
>> I need to create a script to test a proxy connection to a specified
>> server. Any docs ?
>
> I develop on windows xp env
Well, that is great (or not, depending on your computer religion).
But you didn't tell us much.
First and foremost: what kind of server are you talking about? FTP? NNTP?
WAIS? GOPHER? NFS? MAPI? ....
Second: what is the problem? Do you need help designing the test algorithms?
Or setting help setting up a proxy? Or ....
jue
------------------------------
Date: Sun, 08 May 2005 17:15:50 +0200
From: Alexandre Jaquet <alexj@freesurf.ch>
Subject: Re: test proxy
Message-Id: <427e2d2f$0$1154$5402220f@news.sunrise.ch>
Jürgen Exner a écrit :
> Alexandre Jaquet wrote:
>
>>>I need to create a script to test a proxy connection to a specified
>>>server. Any docs ?
>>
>>I develop on windows xp env
>
>
> Well, that is great (or not, depending on your computer religion).
> But you didn't tell us much.
> First and foremost: what kind of server are you talking about? FTP? NNTP?
> WAIS? GOPHER? NFS? MAPI? ....
> Second: what is the problem? Do you need help designing the test algorithms?
> Or setting help setting up a proxy? Or ....
>
> jue
>
>
basically it's a server using http
what do you mean by test algorithm ? My need are simply a script who
will try to connect to a server and if the proxy is not accepted then
the script will test another proxy
------------------------------
Date: Sun, 08 May 2005 17:38:42 +0200
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: test proxy
Message-Id: <3e6q0pF1f055U1@individual.net>
Alexandre Jaquet wrote:
> Sherm Pendley a écrit :
>> Alexandre Jaquet wrote:
>>> I need to create a script to test a proxy connection to a specified
>>> server.
>>>
>>> Any docs ?
>>
>> Depends on the protocol. There are various modules under Net::*. For
>> HTTP, there's LWP or WWW::Mechanize.
>>
>> In general, go to:
>> <http://search.cpan.org>
>>
>> And search there for the protocol (FTP, SMTP, etc.) you want your
>> tests to use.
>>
>> sherm--
>
> thanks but I want to understand the whole processe from the sockets
> connection creation and how the data are passed from localhost to proxy
> server to host
Then you may want to study the source code of a suitable module.
Or read a book.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
------------------------------
Date: Sun, 08 May 2005 16:29:56 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: test proxy
Message-Id: <88rfe.12347$dw1.8401@trnddc02>
Alexandre Jaquet wrote:
>> Alexandre Jaquet wrote:
>>
>>>> I need to create a script to test a proxy connection to a specified
>>>> server. Any docs ?
> basically it's a server using http
Then the LWP module should get you started.
> what do you mean by test algorithm ? My need are simply a script who
> will try to connect to a server and if the proxy is not accepted then
> the script will test another proxy
Well, you didn't say what your problem was. Therefore I asked what your
problem was. Thanks for explaining.
jue
------------------------------
Date: Sun, 08 May 2005 19:12:26 +0200
From: Alexandre Jaquet <alexj@freesurf.ch>
Subject: Re: test proxy
Message-Id: <427e4884$0$1149$5402220f@news.sunrise.ch>
Jürgen Exner a écrit :
> Alexandre Jaquet wrote:
>
>>>Alexandre Jaquet wrote:
>>>
>>>
>>>>>I need to create a script to test a proxy connection to a specified
>>>>>server. Any docs ?
>
>
>>basically it's a server using http
>
>
> Then the LWP module should get you started.
>
>
>>what do you mean by test algorithm ? My need are simply a script who
>>will try to connect to a server and if the proxy is not accepted then
>>the script will test another proxy
>
>
> Well, you didn't say what your problem was. Therefore I asked what your
> problem was. Thanks for explaining.
>
> jue
>
>
great thanks Jurgen =)
------------------------------
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.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
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 8060
***************************************