[10071] in Perl-Users-Digest
Perl-Users Digest, Issue: 3664 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Sep 8 22:07:14 1998
Date: Tue, 8 Sep 98 19:00:22 -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, 8 Sep 1998 Volume: 8 Number: 3664
Today's topics:
Carriage Return on WinNT4.0 <rene.guitar@videotron.ca>
Re: Carriage Return on WinNT4.0 <alext@NOSPAM.pobox.com>
help requested on a perl program jojo9645@my-dejanews.com
Re: help requested on a perl program (Alastair)
Re: help requested on a perl program (Alastair)
Re: Help with a bug in a soft (Tad McClellan)
Help with Compilation Error support@ttone.com
Re: How do you supply cleartext password and be secure <p-fein@uchicago.edu>
IO::File Permissions - Enlightened! <sneaker@sneex.fccj.org>
Re: Novell - Perl 5 Help <palincss@tidalwave.net>
Re: Of FAQS and Rounding... <sneaker@sneex.fccj.org>
Off topic, but ... [Was Re: Perl & Java - differences a <sneaker@sneex.fccj.org>
Re: Off topic, but ... [Was Re: Perl & Java - differenc (Alastair)
Re: Perl documentation (Tad McClellan)
Re: Perl Programmer Needed <rra@stanford.edu>
Re: Perl Programmer Needed <merlyn@stonehenge.com>
Re: Perl Programmer Needed <Richard@WowMe.com>
Re: Perl Programmer Needed <Richard@WowMe.com>
Re: Perl Programmer Needed (Alastair)
Re: Perl Programmer Needed <rra@stanford.edu>
Re: Perl Programmer Needed birgitt@my-dejanews.com
PerlScript and ASPs - getting weird hash values nataliep@my-dejanews.com
Re: ssi exec error... (CA Aspiras)
Unix and Sendmail Errors ranson@rlaj.com
Re: Win32 Lib path problems <alext@NOSPAM.pobox.com>
Re: WWWBoard Questions <palincss@tidalwave.net>
Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 08 Sep 1998 20:19:14 -0400
From: Rene Guitar <rene.guitar@videotron.ca>
Subject: Carriage Return on WinNT4.0
Message-Id: <35F5C982.A0B2EE45@videotron.ca>
I've tried to execute the net send program in a perl program under
NT4.0. Everything works fine except for those carriage return.
Any ideas, suggestions?
This the line of code i use
binmode system("net send Administrator juste test...\n Is there a
CR??");
------------------------------
Date: Tue, 08 Sep 1998 19:37:45 -0600
From: Alex Tatistcheff <alext@NOSPAM.pobox.com>
Subject: Re: Carriage Return on WinNT4.0
Message-Id: <35F5DBE9.E8DA0FEA@NOSPAM.pobox.com>
It seems to me that the command:
system "net send administrator \"Hello, this is a test\"";
Should work fine - no need for a \n at the end.
Rene Guitar wrote:
> I've tried to execute the net send program in a perl program under
> NT4.0. Everything works fine except for those carriage return.
>
> Any ideas, suggestions?
>
> This the line of code i use
>
> binmode system("net send Administrator juste test...\n Is there a
> CR??");
--
----------------------
Please remove NOSPAM from email address when replying
Alex Tatistcheff
alext @ pobox . com
------------------------------
Date: Wed, 09 Sep 1998 00:02:29 GMT
From: jojo9645@my-dejanews.com
Subject: help requested on a perl program
Message-Id: <6t4gik$2f3$1@nnrp1.dejanews.com>
I need help on a perl program I am working on. its a short code (less than
700 BYTES) designed for removing excessive spaces in a field (pipe
delimited). it works alright except that if I work on a large file (20MB file
size), the program gobbles up all of the memory in my computer (32MB RAM). If
anyone out there is interested in helping, I can send them the code and a
sample data that it is supposed to work on. I am mainly interested in finding
out why its eating up my computer's memory. I have tried using reset()
command but it did not work. I am using PERL 5.003 on a pentium 100
processor.
thanks in advance.
jojo
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Wed, 09 Sep 1998 00:15:49 GMT
From: alastair@calliope.demon.co.uk (Alastair)
Subject: Re: help requested on a perl program
Message-Id: <slrn6vblsa.h6.alastair@calliope.demon.co.uk>
jojo9645@my-dejanews.com <jojo9645@my-dejanews.com> wrote:
>I need help on a perl program I am working on. its a short code (less than
>700 BYTES) designed for removing excessive spaces in a field (pipe
>delimited). it works alright except that if I work on a large file (20MB file
>size), the program gobbles up all of the memory in my computer (32MB RAM). If
>anyone out there is interested in helping, I can send them the code and a
>sample data that it is supposed to work on. I am mainly interested in finding
>out why its eating up my computer's memory. I have tried using reset()
>command but it did not work. I am using PERL 5.003 on a pentium 100
>processor.
Perhaps you're pentium has a bug?
You should really post a little code to save people just guessing. It might be
that you're reading the entire file into memory rather than in chunks - perhaps
you could read a line at a time (if it's formatted in lines).
HTH.
--
Alastair
work : alastair@psoft.co.uk
home : alastair@calliope.demon.co.uk
------------------------------
Date: Wed, 09 Sep 1998 00:59:41 GMT
From: alastair@calliope.demon.co.uk (Alastair)
Subject: Re: help requested on a perl program
Message-Id: <slrn6vboei.h6.alastair@calliope.demon.co.uk>
Alastair <alastair@calliope.demon.co.uk> wrote:
>
>Perhaps you're pentium has a bug?
I meant 'your' ofcourse.
--
Alastair
work : alastair@psoft.co.uk
home : alastair@calliope.demon.co.uk
------------------------------
Date: Tue, 8 Sep 1998 19:55:36 -0500
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Help with a bug in a soft
Message-Id: <8mj4t6.fm1.ln@metronet.com>
Plate Forme Jeunes Diplomes (plateforme@wanadoo.fr) wrote:
: I would like extracting data in a file, before print it. I can't
: with this programm. Why? I don't understand.
: Thanks for your help.
: open (FILE,"Dr129a.htm");
: $offre=$1 if /\b (Offre\b.*\bX)/;
: $date=$2 if /\b (Date\b.*\b98)/;
^
^
So, you are asking for the part that matches the 2nd (counting
from the left) set of matching parenthesis to be stored in the
$date variable.
... but you don't _have_ a second set.
The "counting" is done _within_ the pattern match.
It starts again with each new pattern match, it does not
'aggregate' throughout your whole program.
Use $1 in _each_ of your assignment statements.
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: Wed, 09 Sep 1998 01:40:15 GMT
From: support@ttone.com
Subject: Help with Compilation Error
Message-Id: <6t4m9v$bb3$1@nnrp1.dejanews.com>
I got the following error from a Perl CGI script that uses CGI.pm and
LWP::Simple. Can anyone tell me what a Prototype mismatch is?
Prototype mismatch: sub main::head vs ($) at /usr/lib/perl5/Exporter.pm line
157 Exporter::export('LWP::Simple', 'main') called at
/usr/lib/perl5/Exporter.pm line 182 Exporter::import('LWP::Simple') called
at ./DomainReg.pl line 11 main::BEGIN() called at
/usr/lib/perl5/site_perl/LWP/Simple.pm line 0 eval {...} called at
/usr/lib/perl5/site_perl/LWP/Simple.pm line 0 Can't use subscript on constant
item at ./DomainReg.pl line 36, near "2}" syntax error at ./DomainReg.pl line
52, near "(," Execution of ./DomainReg.pl aborted due to compilation errors.
Thanks in advance,
--
Eric Stokien
Master of Other People's Domains
-------------------------------------------------
Who ever thought the nerds would find themselves \
leading a sexual revolution? -David Steinberg /
-------------------------------------------------
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Wed, 9 Sep 1998 00:46:57 GMT
From: Peter A Fein <p-fein@uchicago.edu>
Subject: Re: How do you supply cleartext password and be secure in Perl (was Perl compiler)
Message-Id: <opg90ju5czi.fsf@harper.uchicago.edu>
Garry Williams <garry@america.net> writes:
>
> Garry Williams wrote:
> >
> > Peter A Fein wrote:
> > >
> > > Garry Williams <garry@america.net> writes:
> > > >
> > > > I don't understand. Why not setuid?
> > > >
> > > > Have the script run as your own ID and make a file with the secrets in
> > > > it readable *only* by you. It's as secure as the file system.
> > >
> > > What about security holes in the script? Even if you don't make it
> > > setuid 0, but rather something else, it still necessarily leaves the
> > > possibility of reading the password file open.
> >
> > Can you be more specific? "Scrub" the environment data you use. What's
> > the problem?
Oh yeah. Brain was in lockdown. Sorry.
> >
> > > > > >How do people supply there FTP, SQL etc scripts with that all important
> > > > > >password?
>
> Well, I felt the need to follow up my follow up. :-) Here's a snippet
> of what needs to be done to keep things secure and illustrates what I
> meant. This was taken from a setuid 0 script, but there is no need to
> run as root. The same principle applies -- give up the euid after
> reading the file. The file is only readable by the setuid user. Heck,
> it's not even in the Web server document root. I don't see how anyone
> can read it or coax the secret from the cgi script.
<code snip>
Yeah, that should do it quite nicely. Merci.
--
Peter A Fein Summering in SF!
Home: 650-571-6476 Work: 650-628-2172
p-fein@uchicago.edu pfein@us.checkpoint.com
Who's going to pay for this!?!
------------------------------
Date: Tue, 08 Sep 1998 20:59:34 -0400
From: Bill 'Sneex' Jones <sneaker@sneex.fccj.org>
Subject: IO::File Permissions - Enlightened!
Message-Id: <35F5D2F6.B605A7E4@sneex.fccj.org>
#!/usr/bin/perl -w
use strict;
use diagnostics;
use IO;
# Get the date in the format of 'Sun Sep 6 18:04:46 1998'
my $ltDate = localtime;
# Now get the Serialized Date, and string'em back together...
my ($seconds, $minutes, $hour, $monthDate, $month,
$year, $weekDay, $yearDate, $daylightSavings) = localtime;
my $ltSerial =
"$seconds$minutes$hour$monthDate$month$year$weekDay$yearDate$daylightSavings";
my $file = "$ltSerial";
# This next line only works when my umask is 077;
umask 077; # Temporarily change it...
my $fh = new IO::File $file, "a", 0600;
if (defined $fh) {
print $fh "$ltDate\n";
undef $fh;
} else { print "Oops! $!"; }
autoflush STDOUT 1;
# A quicky ls -l...
system("ls -l");
# But the following does work;
# Note my umask is really still 022...
print "Oops! $!" unless (chmod(0644, $file));
# Another quicky ls -l before we leave...
system("ls -l");
1;
# Thanks to all who helped me undertsand this better!
# It is now as clear as mud. :]
# (And I actually thought I knew umask, file
# permissions, and what not. But I was mistaken!)
Seriously, I do understand now, and I appreciate
everyone's patience while I was rambling :]
Thanks again!
-Sneex- :]
__________________________________________________________________
Bill Jones | FCCJ Webmaster | http://webmaster.fccj.org/Webmaster
__________________________________________________________________
It is common sense to take a method and try it. If it fails,
admit it frankly and try another. But above all, try something.
-- Franklin D. Roosevelt
------------------------------
Date: Tue, 08 Sep 1998 20:57:39 -0400
From: Steve Palincsar <palincss@tidalwave.net>
Subject: Re: Novell - Perl 5 Help
Message-Id: <35F5D283.1AEA@tidalwave.net>
Andrew Robinson wrote:
>
> Here is the script as requested, thanks a lot for your quick reply.
> I realise the smtp.pl may not work however I can not get the script to even
> return an error when the E-mail address is incorrect.
CGI's with problems on NWS3.1 are, in my experience, "tool and die"
apps. That is, they just tool around for a while and then die,
leaving no evidence of any kind that they ever ran at all. No
error in the error log, no error 500, nothing.
>
> #!c:/perl5/bin/perl.exe
Useless, of course
> require ("cgi-lib.pl");
Novell calls theirs "cgilib.pl", I believe. And even then, don't
be so certain that it will always work. I've had it happen
that the require fails totally, without warning and without
any apparent cause. I had to fix this by in-lining the entire
library right in the CGI code.
> use Text::Wrap;
No way! One of the many misfeatures of Novell's so-called Perl5 NLM
is its inability to use any modules.
At Brainshare, Novonyx was promising to have the so-called perl5 NLM
completely rewritten so as to actually be perl5, able to use modules
from the standard distribution, by this summer. Labor day has come
and gone, the kids are back in school, the leaves are starting to
turn brown on my block (all right, we are having a drought) and not
one wee tiny peep out of Novonyx.
Incidentally -- don't even try to do a location redirect. It's broken.
I worked around that problem with javascript.
Steve Palincsar
------------------------------
Date: Tue, 08 Sep 1998 20:25:35 -0400
From: Bill 'Sneex' Jones <sneaker@sneex.fccj.org>
To: Larry Rosler <lr@hpl.hp.com>
Subject: Re: Of FAQS and Rounding...
Message-Id: <35F5CAFF.3BC256B6@sneex.fccj.org>
> [Posted to comp.lang.perl.misc and a copy mailed.]
Larry Rosler wrote:
>
>
> > # Sorry...
>
> [s]printf '%.0f', $number;
>
> > # PS - Who would have thought to use:
> >
> > #perldoc perlfaq4
>
> Evidently not you, for this is in there.
>
No not closely enough, anyways...
> Maybe you didn't know about the '%.0f' format specifier. Or am I
> completely missing the point, and your post was satire?
>
Actually sad, in a way, I have almost completely forgotten
about C and I shouldn't do that. C was fun, and can still
be useful. For what, I am not sure, but ...
Thx for the redirect,
-Sneex- :]
__________________________________________________________________
Bill Jones | FCCJ Webmaster | http://webmaster.fccj.org/Webmaster
__________________________________________________________________
It is common sense to take a method and try it. If it fails,
admit it frankly and try another. But above all, try something.
-- Franklin D. Roosevelt
------------------------------
Date: Tue, 08 Sep 1998 20:34:53 -0400
From: Bill 'Sneex' Jones <sneaker@sneex.fccj.org>
Subject: Off topic, but ... [Was Re: Perl & Java - differences and uses]
Message-Id: <35F5CD2D.AB6D56B6@sneex.fccj.org>
[Java portion of thread post deleted.]
Zenin wrote:
>
> and Perl/Gtk+ (Gimp toolkit bindings from perl, very slick I
> must say), Java still runs circles around both. Gtk+ has the
> potential to blow it away, but not in a cross-platform mannor
> anytime soon.
Off topic, but relevant, with regard to the Gimp, I agree,
it rocks, but why should we worry about being portable toward
Windows, et al, they (meaning windows application developers
IE - M$) very rarely worry about being portable in another
direction (meaning Open Source and Unix.)
???
-Sneex- :]
__________________________________________________________________
Bill Jones | FCCJ Webmaster | http://webmaster.fccj.org/Webmaster
__________________________________________________________________
It is common sense to take a method and try it. If it fails,
admit it frankly and try another. But above all, try something.
-- Franklin D. Roosevelt
------------------------------
Date: Wed, 09 Sep 1998 00:53:44 GMT
From: alastair@calliope.demon.co.uk (Alastair)
Subject: Re: Off topic, but ... [Was Re: Perl & Java - differences and uses]
Message-Id: <slrn6vbo3d.h6.alastair@calliope.demon.co.uk>
Bill 'Sneex' Jones <sneaker@sneex.fccj.org> wrote:
>Off topic, but relevant, with regard to the Gimp, I agree,
>it rocks, but why should we worry about being portable toward
>Windows, et al, they (meaning windows application developers
>IE - M$) very rarely worry about being portable in another
>direction (meaning Open Source and Unix.)
So why stoop to that level?
--
Alastair
work : alastair@psoft.co.uk
home : alastair@calliope.demon.co.uk
------------------------------
Date: Tue, 8 Sep 1998 19:30:53 -0500
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Perl documentation
Message-Id: <t7i4t6.fm1.ln@metronet.com>
David Hawker (dhawker@removethis.bigfoot.com) felt the need to post :
: If this is an attack on corrupting the email address when posting to usenet
: - it can't take a genius to figure out you need to remove the bit that says
: "removethis"
Right.
No genius needed.
A trivially simple program can strip the string 'removethis'
every time it sees it near at '@' sign.
Even an address harvester has to be not-clever-at-all to
undo that munging...
So what is the purpose of putting it in there again?
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: 08 Sep 1998 16:54:34 -0700
From: Russ Allbery <rra@stanford.edu>
Subject: Re: Perl Programmer Needed
Message-Id: <yld896tb2d.fsf@windlord.stanford.edu>
Malcolm Hoar <malch@malch.com> writes:
> It hasn't been a huge problem here to date. However, I fear that
> endorsement may cause certain agencies to feel they can start blasting
> this group with dozens of job postings each day. Once they get started,
> it won't be limited to Perl jobs - we'll get everything from Algol to
> Z-80 assembler :-(
*That* I would object to. And that I think we could get stopped.
I'm not saying I want to see job postings here; personally, I killfile
them. I'm just saying that I'm not aware of any blanket ban of the sort
that Randal's referring to, and in fact I see scattered jobs postings to
various appropriate newsgroups from time to time and don't really see the
problem provided that they (a) aren't too frequent, (b) don't overwhelm
normal traffic, and (c) are well labeled.
And by not too frequent, I mean that if you're reposting your ad more than
once every six months, you're posting it too much.
--
#!/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: Wed, 09 Sep 1998 00:26:54 GMT
From: Randal Schwartz <merlyn@stonehenge.com>
Subject: Re: Perl Programmer Needed
Message-Id: <8cyarujflx.fsf@gadget.cscaper.com>
>>>>> "Richard" == Richard <Richard@WowMe.com> writes:
Richard> 1) Randal refers to "The Rules" as dating back two decades.
Richard> Two decades ago the Internet in general was a different
Richard> animal. It was used mainly by the military and by colleges
Richard> for research purposes. Now, it involves so much more.
Richard> Things evolve. It doesn't make them worse (sometimes it
Richard> does). As Rick illustrated, the rules HAVE changed to allow
Richard> for the larger audience using the Internet. Men no longer
Richard> have to wear hats and public and it is acceptable for a woman
Richard> to hold a job and vote. Imagine that! Sometimes things were
Richard> not right in the first place, so they change and in this case
Richard> they did!
Right, and the way to make a change is to discuss it in news.groups
and news.admin.* with the people who RUN USENET. NOT here. And the
current rules have not changed from the old rules, which were quoted
in another posting, so I won't go into that again.
Richard> 2) I know I over-reacted. However, in retrospect, I am glad
Richard> I did. This is something which should have been discussed.
Richard> It should be made clear to those who don't understand that
Richard> the rules have changed, that the Internet is no longer their
Richard> turf. It is now the turf of every man woman and child on
Richard> this planet.
Wow. Interesting. So you think that you'd even *have* this soapbox
to stand on if every news admin stopped doing their job?
No. You are sadly mistaken. Usenet is available for *you* to use
because *someone else* is taking the time to keep it running. And in
exchange, they ask for darn near nothing, except that you follow the
rules in news.admin.newusers. And the rules have stood the test of
time, and *have* indeed mutated over the years, by agreement, after
having been openly discussed in news.groups and other locations
*amongst the news admins*. But the current ban on jobs in non-job
groups STILL STANDS.
What part of that are you not understanding?
Richard> 3) I don't want to share anyone's private life publicly, but
Richard> some of the people who wrote me, looking for work, explained
Richard> that they really needed some project work because of things
Richard> going on in their personal lives. These people were really
Richard> excited that I posted this here. There really IS NO WHERE
Richard> ELSE for them to go and look for this type of work because
Richard> the job newsgroups and other resources on the net are for
Richard> full-time positions.
I'm sorry. That last statement is completely false, so the rest
of your paragraph doesn't make sense.
--
Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying
Email: <merlyn@stonehenge.com> Snail: (Call) PGP-Key: (finger merlyn@teleport.com)
Web: <A HREF="http://www.stonehenge.com/merlyn/">My Home Page!</A>
Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me
------------------------------
Date: Wed, 09 Sep 1998 00:41:20 GMT
From: "Richard" <Richard@WowMe.com>
Subject: Re: Perl Programmer Needed
Message-Id: <Q8kJ1.2944$JW5.8578338@news.rdc1.md.home.com>
My message isn't HARDLY SPAM! LOL, that is one hell of a stretch!
Zenin wrote in message <905293676.862597@thrush.omix.com>...
>[posted & mailed]
>
>
>Richard <Richard@WowMe.com> wrote:
>: Not true Elaine. Actually, I am still receiving email from
interested
>: parties. That fact alone proves the point that some people did
appreciate
>: the post.
>
> And some people actually appreciate and respond to SPAM, or else
> the spamers wouldn't keep SPAMing. Does that make SPAM ok? No,
> wait, don't answer that...
>
> >snip<
>: I do think we should all be involved in helping people realize what
>: is appropriate and inappropriate on the Internet in general, but there is
a
>: way to do it.
>
> Yes, there is. In an open forum.
>
>: One person, making themselves the policeman of what IS right
>: and IS wrong IS not the way.
>
> I'm flaming you too now, so does that make us a posse? :-)
>
>: Making a friendly note to that person privately is.
>
> CCing the offender isn't a bad idea, but the message should be
> public. This is for the good of the offender as well, as they
> can't defend themself behind closed doors.
>
>: Posting a message publicly saying it is a questionable post
>: and asking for feedback from the other users of the newsgroup is.
>
> See, the problem here is that this is not a debatable issue. It
> has been debated to death and is now, and has been for some time,
> burned in FAQ stone.
>
>: But dropping the gavel on something like this is not.
>
> Why? RTFFAQ or stay out of USENET. It's pretty simple.
>--
>-Zenin (zenin@archive.rhps.org) From The Blue Camel we learn:
>BSD: A psychoactive drug, popular in the 80s, probably developed at UC
>Berkeley or thereabouts. Similar in many ways to the prescription-only
>medication called "System V", but infinitely more useful. (Or, at least,
>more fun.) The full chemical name is "Berkeley Standard Distribution".
>
------------------------------
Date: Wed, 09 Sep 1998 00:49:52 GMT
From: "Richard" <Richard@WowMe.com>
Subject: Re: Perl Programmer Needed
Message-Id: <QgkJ1.2945$JW5.8582203@news.rdc1.md.home.com>
Randal,
Having run many BBS systems, and several discussion servers, I would
have to say a few things.
1) If the admin does not want me to post here, he/she has the ability to
stop it.
2) If my message was that bad, it would have been deleted by the admin and
would not have an equal amount of public support as it does people who frown
upon it and far more people still who replied they were interested.
3) As a system admin, I can remember once, removing a message that was
clearly in violation of some rule, made up to benefit the users. These
users were upset the message was removed. Since the rules are made to keep
the users happy, I BENT the rules and replaced the message.
4) Within an hour of me posting this, someone posted a message stating they
were trying to sell their O'Reilly Perl book. Is this the wrong place to do
that? Do you plan on educating them too?
Have Fun,
Richard
Randal Schwartz wrote in message <8cyarujflx.fsf@gadget.cscaper.com>...
>>>>>> "Richard" == Richard <Richard@WowMe.com> writes:
>
>Richard> 1) Randal refers to "The Rules" as dating back two decades.
>Richard> Two decades ago the Internet in general was a different
>Richard> animal. It was used mainly by the military and by colleges
>Richard> for research purposes. Now, it involves so much more.
>Richard> Things evolve. It doesn't make them worse (sometimes it
>Richard> does). As Rick illustrated, the rules HAVE changed to allow
>Richard> for the larger audience using the Internet. Men no longer
>Richard> have to wear hats and public and it is acceptable for a woman
>Richard> to hold a job and vote. Imagine that! Sometimes things were
>Richard> not right in the first place, so they change and in this case
>Richard> they did!
>
>Right, and the way to make a change is to discuss it in news.groups
>and news.admin.* with the people who RUN USENET. NOT here. And the
>current rules have not changed from the old rules, which were quoted
>in another posting, so I won't go into that again.
>
>Richard> 2) I know I over-reacted. However, in retrospect, I am glad
>Richard> I did. This is something which should have been discussed.
>Richard> It should be made clear to those who don't understand that
>Richard> the rules have changed, that the Internet is no longer their
>Richard> turf. It is now the turf of every man woman and child on
>Richard> this planet.
>
>Wow. Interesting. So you think that you'd even *have* this soapbox
>to stand on if every news admin stopped doing their job?
>
>No. You are sadly mistaken. Usenet is available for *you* to use
>because *someone else* is taking the time to keep it running. And in
>exchange, they ask for darn near nothing, except that you follow the
>rules in news.admin.newusers. And the rules have stood the test of
>time, and *have* indeed mutated over the years, by agreement, after
>having been openly discussed in news.groups and other locations
>*amongst the news admins*. But the current ban on jobs in non-job
>groups STILL STANDS.
>
>What part of that are you not understanding?
>
>Richard> 3) I don't want to share anyone's private life publicly, but
>Richard> some of the people who wrote me, looking for work, explained
>Richard> that they really needed some project work because of things
>Richard> going on in their personal lives. These people were really
>Richard> excited that I posted this here. There really IS NO WHERE
>Richard> ELSE for them to go and look for this type of work because
>Richard> the job newsgroups and other resources on the net are for
>Richard> full-time positions.
>
>I'm sorry. That last statement is completely false, so the rest
>of your paragraph doesn't make sense.
>
>--
>Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
>Keywords: Perl training, UNIX[tm] consulting, video production, skiing,
flying
>Email: <merlyn@stonehenge.com> Snail: (Call) PGP-Key: (finger
merlyn@teleport.com)
>Web: <A HREF="http://www.stonehenge.com/merlyn/">My Home Page!</A>
>Quote: "I'm telling you, if I could have five lines in my .sig, I
would!" -- me
------------------------------
Date: Wed, 09 Sep 1998 00:52:49 GMT
From: alastair@calliope.demon.co.uk (Alastair)
Subject: Re: Perl Programmer Needed
Message-Id: <slrn6vbo1l.h6.alastair@calliope.demon.co.uk>
Richard <Richard@WowMe.com> wrote:
>My message isn't HARDLY SPAM! LOL, that is one hell of a stretch!
No. However, Zenin did not say it was (just a comparison). I'm afraid that I'm
another one that would prefer not to see job posts here.
--
Alastair
work : alastair@psoft.co.uk
home : alastair@calliope.demon.co.uk
------------------------------
Date: 08 Sep 1998 17:54:53 -0700
From: Russ Allbery <rra@stanford.edu>
Subject: Re: Perl Programmer Needed
Message-Id: <ylu32irtpe.fsf@windlord.stanford.edu>
Richard <Richard@WowMe.com> writes:
> Having run many BBS systems, and several discussion servers, I would
> have to say a few things.
> 1) If the admin does not want me to post here, he/she has the ability to
> stop it.
FYI, this group doesn't have an "admin."
--
#!/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: Wed, 09 Sep 1998 01:21:50 GMT
From: birgitt@my-dejanews.com
Subject: Re: Perl Programmer Needed
Message-Id: <6t4l7e$9lq$1@nnrp1.dejanews.com>
In article <ylzpcatisi.fsf@windlord.stanford.edu>,
Russ Allbery <rra@stanford.edu> wrote:
> Randal Schwartz <merlyn@stonehenge.com> writes:
>
> > But you forget, apparently, that the rules for the group are *not* set
> > by the group participants. They're set by the people that actually
> > BRING you the news. The news admins around the world. The ones that
> > publish the stuff in news.admin.newusers. And *they* are the ones that
> > have decreed that job postings go in job groups, regardless of the
> > category.
>
> Er... I'm not aware of any such global policy. I'd get annoyed, as a news
> administrator, if job postings started filling up groups that my users
> wanted to read for other purposes, and if there were too many of them it
> might be a good idea to create a separate group for that purpose, and I'm
> not sure that I'm that *happy* about them, but I odn't feel nearly as
> strongly about this as it seems like you do.
>
My experience with job opening posts is somewhat different.
In general I don't consider well formulated posts of job openings as
a very "commercial" post. People don't want to sell something
they are looking to buy technical know how and pay for it.
This being said, I am nevertheless a bit against them.
I experienced a mailing list for a GPL'ed software package
where the competition among potential helpful posters (to answer
user's more or less technical questions about the package), was
so very obvious, that almost no one answered questions publicly
on the list anymore, but only privately, thus trying to find
paying customers they could consult and avoiding to raise their
own competing experts by "giving away" too much of their knowledge
to the open list. Job opening posts, i.e. requests for consultancies,
were appreciated and encouraged.
I wouldn't have mind, if the list would still have served
its purpose, namely offering advice and exchange among users.
As this wasn't very much the case, I took a heart and then argued
in another very old, busy and technical LUG mailing list against
job opening posts to test my feelings about the issue.
I never confronted a noisier silence than the one which my anti-
job-posting message generated until one brave man did beat me up
publicly for it. How the hell could I think job opening posts are
not appropriate ? Another oldtimer, seasoned unix authority simply
added, they are DEFINITELY OK. Period. Dummy me.
So, two lists, which could become ngs considering their traffic,
both of them WANTING job opening posts, although both lists were
strictly anti-commercial, anti-spam and very much rooted in the
old usenet traditions.
Based on that experience, I wouldn't have thought that clpm's policy
is that clear cut.
Birgitt Funk
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Wed, 09 Sep 1998 01:01:22 GMT
From: nataliep@my-dejanews.com
Subject: PerlScript and ASPs - getting weird hash values
Message-Id: <6t4k12$80a$1@nnrp1.dejanews.com>
I'm trying to use Perlscript (from ActiveState) on an NT 4.0 (sp3) box with
IIS 4.0 and the latest build of Perlscript.
I'm relatively new to ASPs, so please bear with me.
I'm having serious trouble getting the "Request" object values to translate
properly into something sensible.
The ASP is being called with the following URL string:
http:/blah.blah.org/holder.asp?Department=1234
When I embed a statement in holder.asp like:
Site: <%= $Request->{"Department"} %>
I get the correct value for Department printing on the resulting browser page:
Site: 1234
but when I try to embed it in a SQL statement such as
<% $Sqlquery = "SELECT Menu.* FROM Menu WHERE Menu.Department LIKE
$Request->{'Department'}"; %>
I get garbage when I try to execute or print the statement.
Putting the following in my .asp:
<%= $Sqlquery %>
Results in something like this on the output page:
SELECT Menu.* FROM Menu WHERE Menu.Department LIKE Win32::OLE=HASH(0x150ef528)
I have even tried augmenting the statement to the following:
<% $Sqlquery = "SELECT Menu.* FROM Menu WHERE Menu.Department LIKE " .
$Request->{"Department"}; %>
...with exactly the same results as before.
What on EARTH am I doing wrong? Why am I getting some kind of hash pointer
as opposed to the value of the request object?
-Natalie
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Wed, 09 Sep 1998 00:14:30 GMT
From: saints@jps.net (CA Aspiras)
Subject: Re: ssi exec error...
Message-Id: <35f5c62a.5433531@news.jps.net>
sorry about the misleading problem. the problem wasn't the # missing
in my tag ..
was: <!--exec cgi="/cgi-bin/rand_line.pl"-->
should be: <!--#exec cgi="/cgi-bin/rand_line.pl"-->
was: <!--exec cgi="/cgi-bin/rand_line.pl?random1.dat"-->
should be: <!--#exec cgi="/cgi-bin/rand_line.pl?random1.dat"-->
i probably just missed typing that character or my keyboard wasn't
functioning normally last night. =)
(but there's a whole line of #######'s? hmmm..)
anyway, i do have that # in my tags, otherwise, i wouldn't get the
error message:
[an error occurred while processing this directive]
the problem is my the code on how to get the value of the whole string
after the ? when using ssi. it works when typed as URL, but not when
used as ssi tag.
again, i'm sorry. and thanks..
-cesar
-------------------
On Tue, 08 Sep 1998 00:06:29 GMT, saints@jps.net (CA Aspiras) wrote:
> <!--exec cgi="/cgi-bin/rand_line.pl"-->
>
>code:
>###########################
>$datafile = "/home/usr22/www/data/random1.dat";
>open (FILE, "$datafile") || die "Can't open $datafile\n":
>@file = <FILE>;
>close (FILE);
>$lines = join('', @file);
>@lines = split(/\n/, $lines);
>srand(time ^ $$);
>$line = rand(@lines);
>print "Content-type: text/html\n\n";
>print $lines[$line];
>exit;
>###########################
>
>this code works fine. but using this single script across multiple
>datafiles is a problem. so, i tried modifying the code to accept some
>kind of input -- now using this ssi tag:
>
> <!--exec cgi="/cgi-bin/rand_line.pl?random1.dat"-->
>
>new code:
>###########################
>$file = $ENV{'QUERY_STRING'};
>$datafile = "/home/usr22/www/data/$file";
>open (FILE, "$datafile") || die "Can't open $datafile\n":
>@file = <FILE>;
>close (FILE);
>$lines = join('', @file);
>@lines = split(/\n/, $lines);
>srand(time ^ $$);
>$line = rand(@lines);
>print "Content-type: text/html\n\n";
>print $lines[$line];
>exit;
>###########################
>
>somehow, the tag gives me the usual error:
>[an error occurred while processing this directive]
>
>and somehow the code works when i type the command line in this
>format::
> http://www.mycom.com/cgi-bin/rand_line?random1.dat
>
>so, <!--exec cgi="/cgi-bin/rand_line.pl?random1.dat"--> doesn't work
>but http://www.mycom.com/cgi-bin/rand_line?random1.dat works.
>
>can somebody tell me what's wrong here?
>
>thanks.
>
>-cesar
------------------------------
Date: Tue, 08 Sep 1998 20:31:13 -0500
From: ranson@rlaj.com
Subject: Unix and Sendmail Errors
Message-Id: <35F5DA61.6CC2@rlaj.com>
Hope someone can help on this one, I'm stumped.
When sending mail form a perl program to sendmail, sometimes semdmail
dosent like the domain to send to, or there is a problem sending to that
domain - so the script dies. SERVER ERROR. A message is sent back to the
perl interpritor from sendmail, I can not seem to find a way to capture
that error message to print back to the user instead of just, SERVER
ERROR.
So my question to all the perl hacks out there is: How does one capture
the error message from sendmail, and print that message to the user?
Thanks
Ray
------------------------------
Date: Tue, 08 Sep 1998 19:39:10 -0600
From: Alex Tatistcheff <alext@NOSPAM.pobox.com>
Subject: Re: Win32 Lib path problems
Message-Id: <35F5DC3D.985FB5AF@NOSPAM.pobox.com>
Ok, I answered my own question. I just need to read the instructions more
carefully - copied the admnmisc.pll file into the wrong directory - doh!
Alex Tatistcheff wrote:
------------- blah blah blah -------------------
------------------------------
Date: Tue, 08 Sep 1998 21:04:20 -0400
From: Steve Palincsar <palincss@tidalwave.net>
Subject: Re: WWWBoard Questions
Message-Id: <35F5D413.4C69@tidalwave.net>
Neil Kandalgaonkar wrote:
> WWWBoard is a horriible hack which appeared at the right moment in
> internet history to become ubiquitous. It really must be stamped out.
>
> Look around for a real database-backed forum. I don't know any completely
> freeware forum packages out there using Perl (except for Slashdot.org, but
> source is not posted yet, I believe).
At the same time, be very wary of the database-backed forums
commonly available. My experience with WebBBS was that with no load,
it ran great; as soon as a dozen users came online, it slowed to a
dead crawl. By comparison, WWWBoard runs like a deer -- a crufty,
frowsty old deer to be sure, but greased lightening by comparison.
The big problem was all the overhead involved in starting up the CGI
each and every time. WWWBoard is straight HTML links.
And you're right -- it is truly unsightly.
Steve Palincsar
------------------------------
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 3664
**************************************