[9941] in Perl-Users-Digest
Perl-Users Digest, Issue: 3534 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Aug 25 09:02:03 1998
Date: Tue, 25 Aug 98 06:00:45 -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 Tue, 25 Aug 1998 Volume: 8 Number: 3534
Today's topics:
[Perl] How to find the Perl FAQ <rootbeer&pfaq*finding*@redcat.com>
A real newbie question <rob3@loxinfo.co.th>
Re: access database in perl <perlguy@inlink.com>
Re: beginners substring question <saunder@kben.co.uk>
Bug, or mental block? <jgoldberg@dial_put-a-decimal-here_pipex.com>
Re: Bug, or mental block? (Honza Pazdziora)
core dump from perl. Don't know why... dow.jones@home.se
Re: core dump from perl. Don't know why... huntersean@hotmail.com
Re: Desparately need help with Perl Fork CGI program. P (David C. Snyder)
Re: Error Installing Perl on Digital UnixD <swimmer@rto.dec.com>
Re: Exporting Methods <wade@cs.ualberta.ca>
Re: glob not working through browser <tbeaulieu@mediaone.net>
Re: How do I read a file backwards. <saunder@kben.co.uk>
Perl & MS Access <mlvcxm04@nortel.ca>
Re: Perl & MS Access <perlguy@inlink.com>
Re: Perl compiler no.unsoliciteds@dead.end.com
Re: Perl documentation <dan@fearsome.net>
Re: Perl documentation <rra@stanford.edu>
Re: Perl documentation <dan@fearsome.net>
Re: PERL environment/shell execution? <rra@stanford.edu>
Re: Scheduling Perl with Win NT AT Svc scott@softbase.com
Re: Setting DOS environment from PERL scripts scott@softbase.com
Stopping a perl script from VB <coxjb@erols.com>
Re: Switching user id's in mid stream <rra@stanford.edu>
Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 25 Aug 1998 10:24:01 GMT
From: Tom Phoenix <rootbeer&pfaq*finding*@redcat.com>
Subject: [Perl] How to find the Perl FAQ
Message-Id: <pfaqmessage904040641.9119@news.teleport.com>
Archive-name: perl-faq/finding-perl-faq
Posting-Frequency: weekly
Last-modified: 05 Aug 1998
[ That "Last-modified:" date above refers to this document, not to the
Perl FAQ itself! The last major update of the Perl FAQ was in Summer of
1998; of course, ongoing updates are made as needed. ]
For most people, this URL should be all you need in order to find Perl's
Frequently Asked Questions (and answers).
http://cpan.perl.org/doc/FAQs/
Please look over (but never overlook!) the FAQ and related docs before
posting anything to the comp.lang.perl.* family of newsgroups.
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Beginning with Perl version 5.004, the Perl distribution itself includes
the Perl FAQ. If everything is pro-Perl-y installed on your system, the
FAQ will be stored alongside the rest of Perl's documentation, and one
of these commands (or your local equivalents) should let you read the FAQ.
perldoc perlfaq
man perlfaq
If a recent version of Perl is not properly installed on your system,
you should ask your system administrator or local expert to help. If you
find that a recent Perl distribution is lacking the FAQ or other important
documentation, be sure to complain to that distribution's author.
If you have a web connection, the first and foremost source for all things
Perl, including the FAQ, is the Comprehensive Perl Archive Network (CPAN).
CPAN also includes the Perl source code, pre-compiled binaries for many
platforms, and a large collection of freely usable modules, among its
560_986_526 bytes (give or take a little) of super-cool (give or take
a little) Perl resources.
http://cpan.perl.org/
http://www.perl.com/CPAN/
http://cpan.perl.org/doc/FAQs/FAQ/html/perlfaq.html
http://www.perl.com/CPAN/doc/FAQs/FAQ/html/perlfaq.html
You may wish or need to access CPAN via anonymous FTP. (Within CPAN,
you will find the FAQ in the /doc/FAQs/FAQ directory. If none of these
selected FTP sites is especially good for you, a full list of CPAN sites
is in the SITES file within CPAN.)
California ftp://ftp.cdrom.com/pub/perl/CPAN/
Texas ftp://ftp.metronet.com/pub/perl/
South Africa ftp://ftp.is.co.za/programming/perl/CPAN/
Japan ftp://ftp.dti.ad.jp/pub/lang/CPAN/
Australia ftp://cpan.topend.com.au/pub/CPAN/
Netherlands ftp://ftp.cs.ruu.nl/pub/PERL/CPAN/
Switzerland ftp://sunsite.cnlab-switch.ch/mirror/CPAN/
Chile ftp://ftp.ing.puc.cl/pub/unix/perl/CPAN/
If you have no connection to the Internet at all (so sad!) you may wish
to purchase one of the commercial Perl distributions on CD-Rom or other
media. Your local bookstore should be able to help you to find one.
Another possibility is to use one of the FTP-via-email services; for
more information on doing that, send mail to <mail-server@rtfm.mit.edu>
(not to me!) with these lines in the body of the message, flush left:
setdir usenet-by-group/news.announce.newusers
send Anonymous_FTP:_Frequently_Asked_Questions_(FAQ)_List
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Comments and suggestions on the contents of this document
are always welcome. Please send them to the author at
<pfaq&finding*comments*@redcat.com>. Of course, comments on
the docs and FAQs mentioned here should go to their respective
maintainers.
Have fun with Perl!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Sun, 23 Aug 1998 19:36:18 +0700
From: "Rob" <rob3@loxinfo.co.th>
Subject: A real newbie question
Message-Id: <6rp2ml$tkt$1@news.loxinfo.co.th>
I have a form that I want to post to two different CGI scripts
simultaneously is this possible...
Thanks Rob
------------------------------
Date: Tue, 25 Aug 1998 12:14:46 GMT
From: Brent Michalski <perlguy@inlink.com>
Subject: Re: access database in perl
Message-Id: <35E2AAB6.AED9E171@inlink.com>
Nigell Boulton wrote:
>
> I have an access database that I want to allow people to search on my web
> site.
>
> This would be similar to the http://www.schoolsearch.co.uk website
>
> Any ideas, code would be appreacted.
>
> Many thanks
>
> Nigell Boulton
I guess I'd start out by writing a Perl program and then ask the
newsgroup for help if I ran into any problems that aren't answered in
the FAQ's or documentation.
What type of ideas were you looking for Nigell???
Brent
P.S. Yes, I know I am being a smart-ass here, but I couldn't help
myself :-) There was NO Perl question here...
------------------------------
Date: Mon, 24 Aug 1998 09:34:21 +0100
From: Robert Saunders <saunder@kben.co.uk>
Subject: Re: beginners substring question
Message-Id: <35E1258D.6EF37635@kben.co.uk>
Thank you for your help.
Robert
------------------------------
Date: Tue, 25 Aug 1998 11:57:33 +0100
From: "Jeremy Goldberg" <jgoldberg@dial_put-a-decimal-here_pipex.com>
Subject: Bug, or mental block?
Message-Id: <6ru5aq$70t$1@plug.news.pipex.net>
print( "999 $dirname$file ", exists( $checksums{"$dirname$file"} ) ?
"exists\n" : "doesn't exist\n" );
if( exists( $checksums{"$dirname$file"} ) )
{
print( "999 ", $checksums{"$dirname$file"}->[0], "\n" );
print( "999 ", $checksums{"$dirname$file"}->[1], "\n" );
print( "999 $status[9]\n" );
}
defined( $dirname ) || print( "999 No dirname\n" );
defined( $file ) || print( "999 No file\n" );
if( exists( $checksums{"$dirname$file"} ) &&
$checksums{"$dirname$file"}->[1] == $status[9] )
Run this past... all but the last line is for debugging purposes, to try and
figure out the problem. The output from these goes like:
DEBUG: local.login exists
DEBUG: a2b8093c
DEBUG: 899293229
DEBUG: 899293229
Malformed data from server: 'Use of uninitialized value at
/home/sitebuilder/updated line 414, <STDIN> chunk 6.'
(where the DEBUG: lines are the output from the print "999... lines.
My problem is that I can't figure out what on the last line it's complaining
about - every bit seems initialized, but...
- Jeremy Goldberg (fix my address to reply by email)
------------------------------
Date: Tue, 25 Aug 1998 11:11:38 GMT
From: adelton@fi.muni.cz (Honza Pazdziora)
Subject: Re: Bug, or mental block?
Message-Id: <slrn6u56va.g7m.adelton@aisa.fi.muni.cz>
On Tue, 25 Aug 1998 11:57:33 +0100, Jeremy Goldberg <jgoldberg@dial_put-a-decimal-here_pipex.com> wrote:
[...]
> if( exists( $checksums{"$dirname$file"} ) &&
> $checksums{"$dirname$file"}->[1] == $status[9] )
>
> Run this past... all but the last line is for debugging purposes, to try and
> figure out the problem. The output from these goes like:
>
> DEBUG: local.login exists
> DEBUG: a2b8093c
> DEBUG: 899293229
> DEBUG: 899293229
> Malformed data from server: 'Use of uninitialized value at
> /home/sitebuilder/updated line 414, <STDIN> chunk 6.'
>
> (where the DEBUG: lines are the output from the print "999... lines.
>
> My problem is that I can't figure out what on the last line it's complaining
> about - every bit seems initialized, but...
Do I catch you well that your script can be rewritten as
$ perl -w
use strict;
my %checksums = ( "a" => [ 5, 7 ] );
my @status;
$status[9] = 7;
if( exists( $checksums{"a"} ) && $checksums{"a"}->[1] == $status[9] )
{ print $status[7], "Q\n"; }
__END__
Use of uninitialized value at - line 5.
Q
?
The problem might be that the uninitialized value is in the block you
run after that if. What's in there?
--
------------------------------------------------------------------------
Honza Pazdziora | adelton@fi.muni.cz | http://www.fi.muni.cz/~adelton/
I can take or leave it if I please
------------------------------------------------------------------------
------------------------------
Date: Tue, 25 Aug 1998 11:48:38 GMT
From: dow.jones@home.se
Subject: core dump from perl. Don't know why...
Message-Id: <6ru8an$m7k$1@nnrp1.dejanews.com>
Hi,
I've got a program that is run from Internet. Sometimes it generates a large
(4 Mb) 'core' file. I have tried with the -w flag but I don't get any errors
at all.
Is it possible to look at the core-file to see what the problem was?
// Daniel
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Tue, 25 Aug 1998 12:44:07 GMT
From: huntersean@hotmail.com
Subject: Re: core dump from perl. Don't know why...
Message-Id: <6rubio$pds$1@nnrp1.dejanews.com>
In article <6ru8an$m7k$1@nnrp1.dejanews.com>,
dow.jones@home.se wrote:
> Hi,
>
> I've got a program that is run from Internet. Sometimes it generates a large
> (4 Mb) 'core' file. I have tried with the -w flag but I don't get any errors
> at all.
>
> Is it possible to look at the core-file to see what the problem was?
>
> // Daniel
Yes. In general, you need to use a debugger (such as gdb) to look at core
files. Having said that, your perl script shouldn't coredump, so perhaps you
should run your script through the perl debugger ("perl -d") and find out
what's really going wrong.
Sean Hunter
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: 25 Aug 1998 12:41:21 GMT
From: dsnyder@david.snyder.lan (David C. Snyder)
Subject: Re: Desparately need help with Perl Fork CGI program. Please Help!!!!
Message-Id: <slrn6u5c7g.2bm.dsnyder@david.snyder.lan>
Hello Murali,
One thing that I have done in situations like this is to schedule
the job using at(1) instead of forking the CGI script. For example:
system( "at", "now", "my_script", "arguments" );
It's not as cool as re-opening the child processes STDOUT and STDERR
to a file, but it's easy to do as long as the userid under which your
web server is running is able to use at(1). Check
/var/adm/cron/at.allow or /etc/at.allow or the man page for your at(1)
command.
In article <35DF6971.7AF9682D@cisco.com>, Murali Chari wrote:
>
> Hi,
>
> I desparately need help with this procedure. The goal of the script
> is to execute a script in the background (since this script takes 5
> hours to finish) and return control to the browser. (I am using a
> Netscape 4.x brwser, An Apache server, Perl 5.004, Solaris 2.6
> Platform)
-- David
------------------------------
Date: Tue, 25 Aug 1998 13:21:19 +0200
From: Stefan Wimmer <swimmer@rto.dec.com>
To: "Issam W. Alameh" <issam@qtel.com.qa>
Subject: Re: Error Installing Perl on Digital UnixD
Message-Id: <35E29E2F.B552DEA0@rto.dec.com>
Issam W. Alameh wrote:
>
> I Tried to install perl on DU 4.od, but it is keep giving this error,
> Use which C compiler? [cc]
>
> Checking for GNU cc in disguise and/or its version number...
> Configure: DEC: not found
>
> *** WHOA THERE!!! ***
> Your C compiler "cc" doesn't seem to be working!
> You'd better start hunting for one and let me know about it.
>
> I am not benefiting from my machine since it is meant to be used as a web
> server and run on it perl, can any body help in this
>
> Regards
> Issam Alameh
You could use a setld-kit for Perl on DIGITAL UNIX (currently 5.004_4)
as well.
You find it on
ftp://ftp.digital.com/pub/Digital/PERL5004SETLD.tar
ftp://ftp.digital.com/pub/Digital/PERL5004SETLD.readme
or
ftp://ftp.digital.de/pub/Digital/PERL5004SETLD.tar
ftp://ftp.digital.de/pub/Digital/PERL5004SETLD.readme
Hope this helps.
Regards, Stefan
--
Stefan Wimmer Freischuetzstr. 91
Digital Equipment GmbH 81927 Muenchen
Online Services email: swimmer@digital.de
---------------------------------------------------------
"El Tango me ha tocado ..."
------------------------------
Date: 25 Aug 1998 04:42:11 -0600
From: Wade Holst <wade@cs.ualberta.ca>
Subject: Re: Exporting Methods
Message-Id: <r790kdjqbg.fsf@rimbey.cs.ualberta.ca>
Mark Simonetti <se96ms@english.iielr.dmu.ac.uk> writes:
> I'm currently writing a Perl script which uses classes. Reading a book on
> Perl tells me I need to export methods to use them.. yet I don't seem
> to have to ? Am I missunderstanding something ? It says I need to use
> "Exporter" !
You need to 'use Exporter;' because all classes need to have
Exporter as a superclass. Of course, you could instead 'use Some::Module;'
which itself has Exporter as a superclass, etc. etc.
On the other hand, not only do you _not_ have to export methods defined in
a class (via the @EXPORT or @EXPORT_OK variables), you definitely should *NOT*
do such exporting. By implementing your modules as classes, you avoid the
necessity of cluttering the namespaces of other modules.
--
Wade Holst |------------------------------------------|
wade@cs.ualberta.ca | (setq Happiness '( "emacs" . "perl5" ) ) |
http://www.cs.ualberta.ca/~wade | @Happiness = ( "emacs" . "perl5" ); |
University of Alberta |------------------------------------------|
------------------------------
Date: Tue, 25 Aug 1998 07:19:12 -0400
From: "Todd B" <tbeaulieu@mediaone.net>
Subject: Re: glob not working through browser
Message-Id: <6ru6n8$7jk$1@wbnws01.ne.highway1.com>
thank you very much for the help. i made it further with your advice, but i
am still confused as to why this is not working.
# this does NOT work. i tried all sorts of path/filename specs, all return
nothing
@g_aFilenameLog = glob("*.*");
# this DOES work:
opendir DIR, "." || die "can't open dir: $!";
@g_aFilenameLog = readdir DIR;
closedir DIR;
i wonder if it's something with IIS 4? i spent quite a bit of time in it,
trying to figure this out, without any progress at all.
------------------------------
Date: Mon, 24 Aug 1998 09:32:45 +0100
From: Robert Saunders <saunder@kben.co.uk>
Subject: Re: How do I read a file backwards.
Message-Id: <35E1252D.40209137@kben.co.uk>
Thank you
Robert
------------------------------
Date: Tue, 25 Aug 1998 11:50:31 +0200
From: Cyril Matalon <mlvcxm04@nortel.ca>
Subject: Perl & MS Access
Message-Id: <35E288E7.82FCB767@nortel.ca>
Is there a way to read an MS Access DB from a Perl script ?
Thanks.
--
------------------------------------
Cyril Matalon : mlvcxm04@nortel.ca
------------------------------------
------------------------------
Date: Tue, 25 Aug 1998 11:51:07 GMT
From: Brent Michalski <perlguy@inlink.com>
Subject: Re: Perl & MS Access
Message-Id: <35E2A52B.6BA63704@inlink.com>
Cyril Matalon wrote:
>
> Is there a way to read an MS Access DB from a Perl script ?
>
> Thanks.
>
> --
> ------------------------------------
> Cyril Matalon : mlvcxm04@nortel.ca
> ------------------------------------
I was going to be a smart-ass and just say yes but then I may start
another useless flame-war...
Soooo,
Yes you can. The easiest way is to have the Access "database" on an NT
server and use the ODBC drivers at http://www.roth.net/odbc to connect
to them. If you are on an UNIX server, I have heard that there are some
commercially ($$$) available products that allow you to connect to
Access.
There have been some recent messages about this so if you do a search on
DejaNews I am sure you can find more information about the UNIX
products.
Good luck,
Brent
------------------------------
Date: Tue, 25 Aug 1998 19:47:20 +0900
From: no.unsoliciteds@dead.end.com
Subject: Re: Perl compiler
Message-Id: <35E29639.59E84CCC@dead.end.com>
Tom Christiansen wrote:
.
>
> You lose karma points by withholding. You gain prestige not by what
> you sell nor by what you buy, but rather ......
[snip]
For general information:
Firstly Karma isn't measured by points
Secondly just giving sets up the return for karma at a very basic level.
Your every action, thought and word throught your every existence creates
enormous ripples on your karma and if you're basic motivations are other than
that of being the best person you can, you will find yourself on the receiving
end of the bad karma that you yourself have generated until you no longer
generate it. This is what is meant by the "Transmigration of the souls".
Things which undo the creation of good karma are:
complacency
intollerance
not respecting the sacred nature of life
narrow mindedness
stubborness
insicerity
Of which insincerity is a pretty major one.
------------------------------
Date: Tue, 25 Aug 1998 11:04:23 +0100
From: "Daniel Adams" <dan@fearsome.net>
Subject: Re: Perl documentation
Message-Id: <904039530.26381.0.nnrp-10.c2deb1c5@news.demon.co.uk>
Russ Allbery wrote in message ...
>no unsoliciteds <no.unsoliciteds@dead.end.com> writes:
>
>> I don't know about Tom, but on the past occasions I posted to a NG and I
>> DIDN'T munge my addresses I got deluged spam trying to sell me stuff,
>> resulting in me having to change email addresses to get away from it and
>> whoever else went to look at Deja News to get suckers to mass mail from.
>
>Could you define "deluged" for me? I'm extremely curious. I get, on the
>average, about 10-20 spam messages a week, which is so far below the event
>horizon for the amount of mail that I get that I don't even notice it, and
>I'm curious how much of that is due to our local spam blocking and due to
>the fact that I'm using a .edu address.
>
Try about 10-20 each day, and that's _after_ the spam filters and killfiles
etc ad infinitum. And there is a definite correlation to how many posts I
have been making on Usenet, and to which groups - some groups are just
killers, and its normally the ones you would least expect - alt.atheism for
example seems to have a veritable horde of spammers trawling it for
addresses. Go figure.
Anyway, IME it seems that posting a URL is more damaging than posting an
email address - when I post my email address to a group, I get spam at that
email address - however, when I post my URL I get spam at every single one
of my email addresses that is listed on the URL or pages linked to by the
URL - I guess the usenet spambots just forward info to the web spambots
(bleeuch) - this is easily demonstrable for me at least because I can make
up addresses on-the-fly such as spam-address-1@fearsome.net etc for testing.
If someone wishes to post anonymously to avoid this, let them. Spam is a
huge pain in the ass not least because it is invariably underhand - never a
return address and rarely (probably because I'm not very good at it) a
traceable origin.
I can't see (in particular Tom C's) people's problem with people munging
their address in usenet posts - how the hell does it affect you - if you
want to reply to them, do so in the same medium as their original message,
following convention, and post a usenet response. You all champion spam
filters, but I find them to be of very limited use - unless you have the
email address of every single spammer in a database, every filtering effort
will fall short, because it is _impossible_ to differentiate between a real
message and a carefully-disguised spam.
Dan Adams
dan@fearsome.net
------------------------------
Date: 25 Aug 1998 03:35:26 -0700
From: Russ Allbery <rra@stanford.edu>
Subject: Re: Perl documentation
Message-Id: <m3emu573ip.fsf@windlord.Stanford.EDU>
Daniel Adams <dan@fearsome.net> writes:
> Try about 10-20 each day, and that's _after_ the spam filters and
> killfiles etc ad infinitum. And there is a definite correlation to how
> many posts I have been making on Usenet, and to which groups - some
> groups are just killers, and its normally the ones you would least
> expect - alt.atheism for example seems to have a veritable horde of
> spammers trawling it for addresses. Go figure.
I post ungodly quantities of articles to Usenet, have done so for five
years from multiple addresses, and nearly all of those addresses are still
valid and still reach me. So this tells me that either it's the (somewhat
limited) IP address blocking that we do or it's just the fact that I'm at
a .edu site that's making the difference. Although I also post quite
regularly from a .org address.
> Anyway, IME it seems that posting a URL is more damaging than posting an
> email address - when I post my email address to a group, I get spam at
> that email address - however, when I post my URL I get spam at every
> single one of my email addresses that is listed on the URL or pages
> linked to by the URL - I guess the usenet spambots just forward info to
> the web spambots (bleeuch)
My home page URL has been in my signature for at least three years, and it
has multiple addresses listed on it, even in mailto: URLs.
I think it would really be worthwhile for those people who are bothered so
deeply by spam to figure out what it is that I'm doing that they aren't
and see if it will work for them too. I don't get nearly enough of it to
hardly notice.
Perhaps that's the same for the other people who complain about munged
addresses?
> If someone wishes to post anonymously to avoid this, let them.
That's generally my opinion too, although I've seen and do not at all like
the negative effects caused by so many people munging their addresses, and
I think that solution is doomed in the long run.
> I can't see (in particular Tom C's) people's problem with people munging
> their address in usenet posts - how the hell does it affect you
It creates, in general on Usenet, the *expectation* that e-mail addresses
will not be repliable, which makes it much less frequent for off-topic
articles to be taken off-line, for side comments to be made in e-mail
rather than on the newsgroup, and for interesting discussions to come out
of small side-aspects of posts. Perhaps it's something that you have to
have been on Usenet for a long time to notice, but it's quite a loss to
the culture as far as I'm concerned.
> if you want to reply to them, do so in the same medium as their original
> message, following convention, and post a usenet response.
I'm not willing to do that, because a side comment to Tom about some quote
that he has in his sig may not have any Perl content and I don't see any
reason to post it to a Perl group. On this one, I'm afraid I'm fairly
hard-line, although I try to at least be polite about it. Those people I
know don't want to receive e-mail based on posts just don't get the
benefit of my side comments, which they probably don't miss anyway. :)
> You all champion spam filters,
Please try to be more specific with your sweeping generalizations. :)
> but I find them to be of very limited use - unless you have the email
> address of every single spammer in a database, every filtering effort
> will fall short, because it is _impossible_ to differentiate between a
> real message and a carefully-disguised spam.
*shrug* I'm only getting 10-20 spam messages a week and you're getting
ten times that. I'm doing *something* right. ;)
--
#!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker
$^=q;@!>~|{>krw>yn{u<$$<[~||<Juukn{=,<S~|}<Jwx}qn{<Yn{u<Qjltn{ > 0gFzD gD,
00Fz, 0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.), 01,pnn,y{
rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/ #y,d,s,(\$.),$1,gee,print
------------------------------
Date: Tue, 25 Aug 1998 13:18:27 +0100
From: "Daniel Adams" <dan@fearsome.net>
Subject: Re: Perl documentation
Message-Id: <904047573.4972.0.nnrp-05.c2deb1c5@news.demon.co.uk>
Russ Allbery wrote in message ...
>Daniel Adams <dan@fearsome.net> writes:
>I post ungodly quantities of articles to Usenet, have done so for five
>years from multiple addresses, and nearly all of those addresses are still
>valid and still reach me. So this tells me that either it's the (somewhat
>limited) IP address blocking that we do or it's just the fact that I'm at
>a .edu site that's making the difference.
I too perform a great deal of usenet postage, even if its somewhat seasonal.
I really don't think spammers are quite as discriminating as you suggest ;-)
A lot of it does, as I suggested, have to do with my above suggestion - some
ngs are just worse than others. I haven't received any increase in spam
whatsoever since I started posting to clpm, but some ngs are no-go areas as
far as I'm concerned. I don't post there anymore, but a.a is spammer
central, and a number of other ngs are similar - there could be any number
of reasons for this - maybe the spam bots prefer shallow hierarchies/
alphabetical accessability - alt.atheism is probably one of the first
groups a spammer trawling a ng listing would stumble across - c.l.p.m is
deeper hierarchially (eek! spelling!?) and alphabetically maybe??
>> I can't see (in particular Tom C's) people's problem with people munging
>> their address in usenet posts - how the hell does it affect you
>
>It creates, in general on Usenet, the *expectation* that e-mail addresses
>will not be repliable,
[snip]
I've been on Usenet for several years in various guises and I can understand
to a certain extent what you are saying, but I think that it is a matter of
striking a balance - remember I said that I support address munging, not
address exclusion - I mean that making your from: and reply-to: addresses
danCUTME@ReMoVE.fearsome.net is acceptable because it foils or at least
slows spammers whislt anybody trying to send you a message will see in their
"bounced" message that the mail was sent to danCUTME@etc - the real address
is obvious and they only have to hit "redirect" or "forward" in their mail
app. and all is well. Inconvenient, but every argument is considered.
>> if you want to reply to them, do so in the same medium as their original
>> message, following convention, and post a usenet response.
>
>I'm not willing to do that, because a side comment to Tom about some quote
>that he has in his sig may not have any Perl content and I don't see any
>reason to post it to a Perl group.
[snip]
>Those people I
>know don't want to receive e-mail based on posts just don't get the
>benefit of my side comments, which they probably don't miss anyway. :)
Can't say I've been missing them myself ;-) and please don't mistake me - I
don't munge my own address in my headers/messages for the convenience of
others, and its always welcome in a conspiratorial kind of way when people
send an email to you on-the-side. I do, however, think that people have the
right to munge their addresses to avoid spam and that it shouldn't leave
them open to abuse from others.
>*shrug* I'm only getting 10-20 spam messages a week and you're getting
>ten times that. I'm doing *something* right. ;)
Not arithmetic! There's not ten days in every week! ;-)
Dan Adams
dan@fearsome.net
------------------------------
Date: 25 Aug 1998 03:05:54 -0700
From: Russ Allbery <rra@stanford.edu>
Subject: Re: PERL environment/shell execution?
Message-Id: <m3n28t74vx.fsf@windlord.Stanford.EDU>
Daphna <daphna@exlibris.co.il> writes:
> I was wondering if it is possible to run PERL as an "environment" much
> like CShell on UNIX. Can I enter a PERL "session" and from that point
> on proceed to enter PERL commands/statements interactively ?
perl -de42
(Note that the 42 is irrelevant; perl -d invokes the debugger, which has
an interactive mode, but you need to give it some script to debug, and the
easiest trivial script is a -e script on the command line that's just some
simple number. And 42 is just appropriate. ;))
--
#!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker
$^=q;@!>~|{>krw>yn{u<$$<[~||<Juukn{=,<S~|}<Jwx}qn{<Yn{u<Qjltn{ > 0gFzD gD,
00Fz, 0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.), 01,pnn,y{
rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/ #y,d,s,(\$.),$1,gee,print
------------------------------
Date: 25 Aug 1998 12:36:21 GMT
From: scott@softbase.com
Subject: Re: Scheduling Perl with Win NT AT Svc
Message-Id: <35e2afc5.0@news.new-era.net>
Alex Tatistcheff (alext@cri-boi.nospam.com) wrote:
> Rather than run my NT Perl script as a service I'd like to run it using
> the NT Scheduler Service (AT service).
Better yet, go to http://www.skwc.com/essent and scroll down
until you get to my free cron reimplementation in Perl.
It's like having a real job scheduler on NT! :)
I use this for backups.
Scott
--
Look at Softbase Systems' client/server tools, www.softbase.com
Check out the Essential 97 package for Windows 95 www.skwc.com/essent
All my other cool web pages are available from that site too!
My demo tape, artwork, poetry, The Windows 95 Book FAQ, and more.
------------------------------
Date: 25 Aug 1998 12:37:56 GMT
From: scott@softbase.com
Subject: Re: Setting DOS environment from PERL scripts
Message-Id: <35e2b024.0@news.new-era.net>
Daphna (daphna@exlibris.co.il) wrote:
> Can I set these variables to new values which will be
> saved when I leave the script?
Sort of -- you must create a batch file, and CALL that batch file
after the script exits. There's no way for a called process to
change the env vars in the shell that called it.
Scott
--
Look at Softbase Systems' client/server tools, www.softbase.com
Check out the Essential 97 package for Windows 95 www.skwc.com/essent
All my other cool web pages are available from that site too!
My demo tape, artwork, poetry, The Windows 95 Book FAQ, and more.
------------------------------
Date: Tue, 25 Aug 1998 08:34:31 -0400
From: "Dduptie" <coxjb@erols.com>
Subject: Stopping a perl script from VB
Message-Id: <6rub9c$5dp$1@winter.news.erols.com>
What is the easiest way to stop a perl script running as an automation
object in VB. The script I am running parses large database style report
files, and would require a stop or cancel button in the VB interface that
calls it.
The script as it is currently structured is comprised of one main sub
which is exposed as a method to VB. This main sub is fed arguments from VB
and calls other subs within the script. Any help would be appreciated.
Jon
------------------------------
Date: 25 Aug 1998 03:04:32 -0700
From: Russ Allbery <rra@stanford.edu>
Subject: Re: Switching user id's in mid stream
Message-Id: <m3pvdp74y7.fsf@windlord.Stanford.EDU>
Matt Roberds <mroberds@worldnet.att.net> writes:
> I have tried various things to make this happen. Basically what I want
> to do is start the script normally, then when the user wants to copy
> these special files, "switch" to the generic user ID. I have tried
> opening a pipe to an "rlogin" that comes back to the same machine with
> the generic user ID. This starts to work, but breaks whenever rlogin
> asks for the password. It seems like rlogin is smart enough to go back
> and get the controlling terminal of the Perl interpreter, and send its
> "password:" prompt to that. Perl never sees it and it comes back to the
> terminal of the user who started the Perl script. I am fairly sure from
> tests I have made that rlogin is not just writing to standard error
> (which I am then failing to capture) but I could be wrong about that.
> If I could get the rlogin to work, I would then copy the files to their
> final destination (so they would be owned by the generic user) and then
> close the rlogin session.
I'm afraid that you'll find it very difficult to get rlogin to work (or at
least you *should* find it difficult to get it to work), since rlogin,
like any program that prompts for a password, should explicitly reopen
/dev/tty and read from it, specifically to prevent people from doing
things like this. ;)
If the user knows the password for the generic ID, can't you just put that
user @localhost in a .rhosts files for the generic user, so that rlogin
won't prompt for a password?
--
#!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker
$^=q;@!>~|{>krw>yn{u<$$<[~||<Juukn{=,<S~|}<Jwx}qn{<Yn{u<Qjltn{ > 0gFzD gD,
00Fz, 0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.), 01,pnn,y{
rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/ #y,d,s,(\$.),$1,gee,print
------------------------------
Date: 12 Jul 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Special: Digest Administrivia (Last modified: 12 Mar 98)
Message-Id: <null>
Administrivia:
Special notice: in a few days, the new group comp.lang.perl.moderated
should be formed. I would rather not support two different groups, and I
know of no other plans to create a digested moderated group. This leaves
me with two options: 1) keep on with this group 2) change to the
moderated one.
If you have opinions on this, send them to
perl-users-request@ruby.oce.orst.edu.
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 3534
**************************************