[8162] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 1780 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Jan 31 23:07:32 1998

Date: Sat, 31 Jan 98 20:00:20 -0800
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Sat, 31 Jan 1998     Volume: 8 Number: 1780

Today's topics:
    Re: Don't use signal handlers (was Re: Child processes) (Abigail)
    Re: Forcing 7-digit number? (Anthony Boyd)
    Re: Forcing 7-digit number? (Anthony Boyd)
    Re: Help with executing app on NT using PERL <mdegouttes@osb.pf>
        How do we use a decimal point? <info@cinox.demon.co.uk>
    Re: How do we use a decimal point? (Chip Salzenberg)
    Re: How do we use a decimal point? <corky@ultranet.com>
    Re: How do we use a decimal point? (Abigail)
    Re: Internet Community needs cgi scripts like it needs  <corky@ultranet.com>
    Re: Internet Community needs cgi scripts like it needs  (Chip Salzenberg)
    Re: open in append mode <mdegouttes@osb.pf>
    Re: perl script displayed in browser sometimes... (Chip Salzenberg)
        perl.. confusing.. <mov@sci.fi>
    Re: perl.. confusing.. <mdegouttes@osb.pf>
    Re: Perl5 Database chad
        probably a simple answer <rob@searles.demon.co.uk>
    Re: probably a simple answer (Chip Salzenberg)
    Re: Routing SMTP --> Perl (Chip Salzenberg)
        RE: Routing SMTP --> Perl <admin@asarian-host.org>
    Re: TYP21D (was: substitute...) (Chip Salzenberg)
    Re: URL problems in HTTP::Request call (Jason)
    Re: Win32 hated here?  Sure.  (Was Re: shut down all se (Chip Salzenberg)
    Re: Win32 hated here?  Sure.  (Was Re: shut down all se (Marc Haber)
        Win32 Venting & The Answer (was Re: Win32: Any scripts  (Troy Denkinger)
    Re: Win32: Any scripts to shut down all services? (Marc Haber)
    Re: Windows NT perl mail command (Chip Salzenberg)
        Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: 1 Feb 1998 03:31:37 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: Don't use signal handlers (was Re: Child processes)
Message-Id: <6b0qap$6nv$1@client2.news.psi.net>

Chip Salzenberg (chip@mail.atlantic.net) wrote on 1614 September 1993 in
<URL: news:6b06kg$eln$1@cyprus.atlantic.net>:
++ According to tchrist@mox.perl.com (Tom Christiansen):
++ >In comp.lang.perl.misc, chip@pobox.com writes:
++ >:Second, for applications that need signal handlers, it is entirely
++ >:safe to write an extension (a standard procedure for Perl coding) that
++ >:includes a signal handler written in C.
++ >
++ >Show us.
++ 
++ Come now.  I can't show you all possible XSUBs that meet this
++ description.
++ 
++ >If you can't even handle SIGCHLD, then all is lost.  SIGALRM
++ >and SIGINT are also important.  Perhaps SIGCONT and SIGWINCH.
++ 
++ Like I said, you can do all those with XSUBs.  You know that.
++ Why are you pretending not to understand me?


If the answer is that you'd have to write C to make Perl programs
work, I might as well stop using Perl.

I started using Perl because I hate writing in C.


Abigail
-- 
Let's start reading Programming Python.


------------------------------

Date: Sat, 31 Jan 1998 17:55:26 -0800
From: anthony@outshine.com (Anthony Boyd)
Subject: Re: Forcing 7-digit number?
Message-Id: <anthony-3101981755260001@anthony.outshine.com>

In article <6b0egp$f5a$1@cyprus.atlantic.net>, chip@pobox.com wrote:
> According to anthony@outshine.com (Anthony Boyd):
> 
> >No, I don't have access to the latest version.  We're at 5.003 I think,
> >and won't upgrade until the IS department obsessively tests 5.004.
> 
> The list of things in 5.003 that we fixed for 5.004 is *VERY* long.
> Included in them are several buffer overflows, two of which have
> security implications.

I printed your post, it may be convincing.  Thanks.

-Tony


------------------------------

Date: Sat, 31 Jan 1998 17:57:46 -0800
From: anthony@outshine.com (Anthony Boyd)
Subject: Re: Forcing 7-digit number?
Message-Id: <anthony-3101981757460001@anthony.outshine.com>

rjk@coos.dartmouth.edu wrote:

> For example: 
> 
> srand (time ^ $$ ^ unpack "%L*", `ps axww | gzip`);
> 
> If you're particularly concerned with this, see the
> Math::TrulyRandom module in CPAN. 
> 
> There you go, some nice examples of calling srand with a seed.

Thank you.  Now that I see that, I think I can roll my own, only not quite
so complicated.  Maybe I'll just feed it the process ID.  That might
differentiate multiple scripts running at the same second.  I don't know
what "time ^ $$" does, but with it in front of me, I can go learn about
it.

-Tony


------------------------------

Date: Sat, 31 Jan 1998 17:39:05 -1000
From: Marc de GOUTTES <mdegouttes@osb.pf>
To: swilson@nswc.navy.mil
Subject: Re: Help with executing app on NT using PERL
Message-Id: <34D3EE59.7A14@osb.pf>

swilson@nswc.navy.mil wrote:
> 
> Hello All,
> 
> I would appreciate any help that anyone could give me on this.  I am
> trying to automate some testing on an NT box using PERL.  The windows
> console program that I want to run must be executed over 1000 times with
> different inputs to it every time.  Sort of like a batch file with
> variables.  For example, my simple PERL script looks like:
> 
> for ($i=16; $i < 16384; $i+=16)
> {
>    print 'my_app -a -b -c -l$i';
> }
> 
> I have PERL running correctly because I can run the "Hello World" type of
> program.  Can anyone help me out?  I would greatly appreciate any comments
> offered.
> 
> Thanks!
> 
> Scott Wilson
> 
> -------------------==== Posted via Deja News ====-----------------------
>       http://www.dejanews.com/     Search, Read, Post to Usenet

But, what's your problem ?


------------------------------

Date: Sun, 1 Feb 1998 00:12:00 -0000
From: "Tim Murphy" <info@cinox.demon.co.uk>
Subject: How do we use a decimal point?
Message-Id: <886291924.15354.0.nnrp-01.9e981405@news.demon.co.uk>

Hello.

Is there an easy way in Perl of expressing a number to two decimal points.

The Perl munchers!






------------------------------

Date: Sun, 01 Feb 1998 02:27:38 GMT
From: chip@mail.atlantic.net (Chip Salzenberg)
Subject: Re: How do we use a decimal point?
Message-Id: <6b0mm1$fkf$1@cyprus.atlantic.net>

According to "Tim Murphy" <info@cinox.demon.co.uk>:
>Is there an easy way in Perl of expressing a number to two decimal points.

*smack*  FAQ.  ([tm] Jonathan Feinberg)
-- 
Chip Salzenberg               - a.k.a. -                <chip@pobox.com>
    Like Perl?  Want to help out?  The Perl Institute: www.perl.org
           ->  Ask me about Perl training and consulting  <-
             "It's the lemon zester of death!!"   // MST3K


------------------------------

Date: Sat, 31 Jan 1998 21:22:38 -0500
From: Bob Trieger <corky@ultranet.com>
To: Tim Murphy <info@cinox.demon.co.uk>
Subject: Re: How do we use a decimal point?
Message-Id: <34D3DC6E.16EC@ultranet.com>

Tim Murphy wrote:
> 
> Hello.
> 
> Is there an easy way in Perl of expressing a number to two decimal points.
> 
> The Perl munchers!


sprintf or printf "%0.2f",$yournumber;


HTH
Bob Trieger
corky@ma.ultranet.com


------------------------------

Date: 1 Feb 1998 03:37:47 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: How do we use a decimal point?
Message-Id: <6b0qmb$6nv$2@client2.news.psi.net>

Tim Murphy (info@cinox.demon.co.uk) wrote on 1615 September 1993 in
<URL: news:886291924.15354.0.nnrp-01.9e981405@news.demon.co.uk>:
++ Hello.
++ 
++ Is there an easy way in Perl of expressing a number to two decimal points.


*TWO* decimal points? What kind of numbering system is that?



Abigail
-- 
perl -wle '$_ = 1; (1 x $_) !~ /^(11+)\1+$/ && print while $_ ++'


------------------------------

Date: Sat, 31 Jan 1998 21:26:22 -0500
From: Bob Trieger <corky@ultranet.com>
Subject: Re: Internet Community needs cgi scripts like it needs ...
Message-Id: <34D3DD4D.47BD@ultranet.com>

Michael Peck wrote:
> 
> On 30 Jan 1998 21:07:54 -0500, clay@panix.com (Clay Irving) wrote:
> 
> >In <6at7b5$b9r$1@cyprus.atlantic.net> chip@mail.atlantic.net (Chip Salzenberg) writes:
> >
> >>According to pudge@pobox.com (Chris Nandor):
> >>>... a hole in the head ...
> >>>... AlterNIC ...
> >>>... spammers ...
> >
> >>... IRC bots ...  (except purl!)
> >>... broadcast ICMP replies ...
> >>... old sendmails ...
> >
> >... Perl 4 questions ...
> 
> ...NT Web Servers ...

 ...Operating Systemism & Operating Systemists...
 ...Platform specific programming languages...


------------------------------

Date: Sun, 01 Feb 1998 02:43:00 GMT
From: chip@mail.atlantic.net (Chip Salzenberg)
Subject: Re: Internet Community needs cgi scripts like it needs ...
Message-Id: <6b0nj0$fmo$1@cyprus.atlantic.net>

According to Bob Trieger <corky@ultranet.com>:
>Michael Peck wrote:
>> On 30 Jan 1998 21:07:54 -0500, clay@panix.com (Clay Irving) wrote:
>> >In <6at7b5$b9r$1@cyprus.atlantic.net> chip@mail.atlantic.net (Chip Salzenberg) writes:
>> >
>> >>According to pudge@pobox.com (Chris Nandor):
>> >>>... a hole in the head ...
>> >>>... AlterNIC ...
>> >>>... spammers ...
>> >
>> >>... IRC bots ...  (except purl!)
>> >>... broadcast ICMP replies ...
>> >>... old sendmails ...
>> >
>> >... Perl 4 questions ...
>> 
>> ...NT Web Servers ...
>
>...Operating Systemism & Operating Systemists...
>...Platform specific programming languages...

 ... Microsoft ...
-- 
Chip Salzenberg               - a.k.a. -                <chip@pobox.com>
    Like Perl?  Want to help out?  The Perl Institute: www.perl.org
           ->  Ask me about Perl training and consulting  <-
             "It's the lemon zester of death!!"   // MST3K


------------------------------

Date: Sat, 31 Jan 1998 17:44:49 -1000
From: Marc de GOUTTES <mdegouttes@osb.pf>
Subject: Re: open in append mode
Message-Id: <34D3EFB1.54F4@osb.pf>

Chad R Cordero wrote:
> 
> For some reason I can't figure out how to append text to a file.  I
> originally tried the following:
> 
>         open(FILE, ">>file");
>                 print FILE ("$variable");
>         close(FILE);
> 
> but that failed.  I have gone through all of the books in my office to
> find an example for open in append mode but cannot find one.  What am I
> doing wrong?  How should I do this?
> 
> Any help is appreciated.
> 
> Chad Cordero

Nothing's wrong. But, after an open call, you should TEST returned
value. If you've not access rigths to the file you've opened, don't
try to write in it.
Hope that'll help.


------------------------------

Date: Sun, 01 Feb 1998 00:52:29 GMT
From: chip@mail.atlantic.net (Chip Salzenberg)
Subject: Re: perl script displayed in browser sometimes...
Message-Id: <6b0h3e$f9e$1@cyprus.atlantic.net>

According to "Lex Sheehan" <lex@datadrivensolutions.com>:
>I am running IIS3.0, have configured .pl files in NT4.0 registry
>and sometimes they run, and sometimes they are displayed
>in the browser's window???

That's an IIS problem.  You want an IIS, or general server, group.
We don't know.
-- 
Chip Salzenberg               - a.k.a. -                <chip@pobox.com>
    Like Perl?  Want to help out?  The Perl Institute: www.perl.org
           ->  Ask me about Perl training and consulting  <-
             "It's the lemon zester of death!!"   // MST3K


------------------------------

Date: 28 Jan 1998 13:59:58 GMT
From: "mov" <mov@sci.fi>
Subject: perl.. confusing..
Message-Id: <01bd2bf5$2ad92e20$8a064ac3@jouninkone>

I'm newbie with perl, and I wanted to know few things. 

	i have counter.pl ?? what should i do with it? i have done cgi-bin
directory to my wwwhomeplace. And put chmod 755 with it.. and whats the
problem now is that i dont know how to use this.. 

	what are these??
	.cgi <- when pl is compiled?? or what.. like i said.. I'm very confused. 
	.pl
	.sh ??.. they all can be used somewho..

I have in counter.pl first line looking like this

#!/opt/perl/bin/perl <- thats what my internet provider told me to use..
and I change it... and it didn't work after it.. could someone kindfully
help me??.. tell me that do i have to compile counter.pl to counter.cgi?..
or how can i do counter.cgi?? and... how can i use those .pl or .cgi files
in my htlm pages?.. 

	-mov


------------------------------

Date: Sat, 31 Jan 1998 17:34:19 -1000
From: Marc de GOUTTES <mdegouttes@osb.pf>
Subject: Re: perl.. confusing..
Message-Id: <34D3ED3B.6D27@osb.pf>

mov wrote:
> 
> I'm newbie with perl, and I wanted to know few things.
> 
>         i have counter.pl ?? what should i do with it? i have done cgi-bin
> directory to my wwwhomeplace. And put chmod 755 with it.. and whats the
> problem now is that i dont know how to use this..
> 
>         what are these??
>         .cgi <- when pl is compiled?? or what.. like i said.. I'm very confused.
>         .pl
>         .sh ??.. they all can be used somewho..
> 
> I have in counter.pl first line looking like this
> 
> #!/opt/perl/bin/perl <- thats what my internet provider told me to use..
> and I change it... and it didn't work after it.. could someone kindfully
> help me??.. tell me that do i have to compile counter.pl to counter.cgi?..
> or how can i do counter.cgi?? and... how can i use those .pl or .cgi files
> in my htlm pages?..
> 
>         -mov
Your question has nothing to do with PERL.
You're asking "how do I make a CGI work ?".
First, get a book and read it.
Second, go to CGI dedicated newsgroup.
Good luck.


------------------------------

Date: 31 Jan 1998 14:13:28 -0800
From: chad
Subject: Re: Perl5 Database
Message-Id: <6b07m8$gdh@drn.zippo.com>

This may be a crazy way of doing it, but what I do is replace the ^M or CR what
ever you'd like to call them with some symbol like BR or :-: what ever, then
save it as one line.  then of course when I want to display it I do the reverse.

hopes this helps.

-chad


In article <886253677.2506.0.nnrp-09.9e982204@news.demon.co.uk>,
bruce@allied.demon.co.uk says...
>
>I wrote a small message center which works fine except for;
>
>When a message is input in the text area box (wrap=physical) the input
>is written to the database line with all the carriage returns
>(paragraphs) correctly implemented.
>
>My script looks at the first field message id and sees blank lines due
>the carriage returns and prints ghosts, ie., no message, only the part
>up to the first <CR>.
>
>Is there an easy way to ensure that the input remains on one line and
>some way of interpreting a <CR> in that line so that output displays
>as per the input.
>
>Thanks
>Bruce Davidson
>bruce@allied.demon.co.uk
>


------------------------------

Date: Sun, 01 Feb 1998 00:34:23 +0000
From: Rob Searles <rob@searles.demon.co.uk>
Subject: probably a simple answer
Message-Id: <34D3C30B.61E2@searles.demon.co.uk>

I have written a simple logging script for use on my demon account.  But
as I don't have a cgi-bin in this account, my friend said that I can use
his cgi-bin.

on his server, when calling the script with ...
<!--#exec cgi="/cgi-bin/log/log.pl" -->
it works fine, but when I come to put call it from my demon account,
using
<!--#exec cgi="http://his_domain.co.uk/cgi-bin/eyebrow-log/log.pl" -->
it doesn't work
(and no i haven't acctually written "his_domain" in the command!)
could anyone tell me why it doesn't work please.

Thanks rob


------------------------------

Date: Sun, 01 Feb 1998 02:32:58 GMT
From: chip@mail.atlantic.net (Chip Salzenberg)
Subject: Re: probably a simple answer
Message-Id: <6b0n0d$fla$1@cyprus.atlantic.net>

Yes, there's a simple answer:

  comp.infosystems.www.authoring.cgi

-- 
Chip Salzenberg               - a.k.a. -                <chip@pobox.com>
    Like Perl?  Want to help out?  The Perl Institute: www.perl.org
           ->  Ask me about Perl training and consulting  <-
             "It's the lemon zester of death!!"   // MST3K


------------------------------

Date: Sun, 01 Feb 1998 00:54:03 GMT
From: chip@mail.atlantic.net (Chip Salzenberg)
Subject: Re: Routing SMTP --> Perl
Message-Id: <6b0h6q$fa5$1@cyprus.atlantic.net>

According to admin@asarian-host.org:
>I have a sendmail question. I would like to intercept SMTP messages to a perl script, so 
>I can further process them, check em for senders, spammers, etc, and then resend. To that 
>avail I wanted to change something in the following section of sendmail.cf:

First, please fix your line endings.

Second, you want comp.mail.sendmail, down the hall and turn right at
the sound of the wooden mallets.
-- 
Chip Salzenberg               - a.k.a. -                <chip@pobox.com>
    Like Perl?  Want to help out?  The Perl Institute: www.perl.org
           ->  Ask me about Perl training and consulting  <-
             "It's the lemon zester of death!!"   // MST3K


------------------------------

Date: Sat, 31 Jan 1998 17:18:54 -0700 (MST)
From: "Mark" <admin@asarian-host.org>
Subject: RE: Routing SMTP --> Perl
Message-Id: <199802010018.RAA07062@asarian-host.org>


Yay! I got the perl script executing now. :) There is one little snag, though: when I 
read <STDIN>, nothing seems to be parsed to the script. But I feel I am getting real, 
real close now. It is soo kewl to see sendmail execute my perl script upon using the 
SMTP-server. :) Most useful. So, if anyone knows of a switch to add to the A= line to 
have the message sent to <STDIN>, this thingy might actually work. :) I already want to 
thank the people who contributed to solving this problem so far, and I am sure parsing 
the <STDIN> to the script is just a small matter. :)

Many thanks in advance,

System Administrator Asarian-host.org

** Disclaimer ** The opinions expressed in this post do not necessarily reflect the 
official stance of our server: asarian-host.org, and are made on a personal basis only, 
solely written as the opinions of a participant of this newsgroup/mailing list, and 
solely to be read in that context.

On Saturday, January 31, 1998 10:23 PM, Mark [SMTP:admin@asarian-host.org] wrote:
> Dear group,
>
> I have a sendmail question. I would like to intercept SMTP messages to a perl script, 
so
> I can further process them, check em for senders, spammers, etc, and then resend. To
> that avail I wanted to change something in the following section of sendmail.cf:
>
> ##################################################
> ### Local and Program Mailer specification ###
> ##################################################
>
> ##### @(#)local.m4 8.23 (Berkeley) 5/31/96 #####
>
> Mlocal,	P=/bin/vmail, F=lsDFMAw5:/|@qrmn9, S=10/30,
> 	R=20/40,T=DNS/RFC822/X-Unix,
> 	A=mail -d $u
>
> Mprog,	P=/bin/sh, F=lsDFMoqeu9, S=10/30,
> 	R=20/40, D=$z:/, T=X-Unix,
> 	A=sh -c $u
>
> And turn the Mprog line into something like:
>
> Mprog, P=/usr/bin/perl, F=lsDFMoqeu9, S=10/30,
> 	R=20/40, D=$z:/, T=X-Unix,
> 	A=perl /usr/local/etc/httpd/cgi-bin/smtp.pl
>
> This is the relevant part. I choose for a mailer prog the perl executable, and on the
> Arguments line, I added the name of the perl script to be executed. As was suggested to
> me, this is supposed to be the correct way to do it, except that it does not work. :( I
> have seen procmail do a similar trick. Apart from my personal use for intercepting SMTP
> messages like this, I think figuring this out has great common value, too. Instead of
> muddling around with cryptic sendmail rewriting rules, and obscure database records, it
> would be really beneficial if we could temporarily shell to a perl-script, check the
> headers and stuff, process the message any which way we see fit, and from there ship
> the message off with a sendmail.cf override:
>
> open (MAIL, "| /bin/sendmail -Creal_sendmail.cf -$recipient");
>
> If anyone would have any suggestions in this area, I would be much obliged. If you 
reply
> on the group, please cc a response to me, as my news server seems rather flaky these
> days.
>
> Many thanks in advance,
>
> - Mark
>
> System Administrator Asarian-host.org
>
> ** Disclaimer ** The opinions expressed in this post do not necessarily reflect the
> official stance of our server: asarian-host.org, and are made on a personal basis only,
> solely written as the opinions of a participant of this newsgroup/mailing list, and
> solely to be read in that context.






--
For more information about this posting service, contact:

help@asarian-host.org    -- for instant general information about our services
admin@asarian-host.org   -- for the server's administrator
nclark@asarian-host.org  -- for our PR manager
abuse@asarian-host.org   -- for abuse of this posting service
spambin@asarian-host.org -- for spammers you do not wish to receive email from



















------------------------------

Date: Sun, 01 Feb 1998 01:54:54 GMT
From: chip@mail.atlantic.net (Chip Salzenberg)
Subject: Re: TYP21D (was: substitute...)
Message-Id: <6b0koe$ffb$1@cyprus.atlantic.net>

According to davet@angel.uunet.ca (Dave Till):
> To a certain extent, there is no real difference between how
> undefined variables and variables containing the null string are
> treated.  For example, uninitialized variables are assumed to
> contain the null string ....

Any such "assuming" isn't being done by Perl.  By you, maybe....

Perhaps you are talking about the fact that when undefined values
are _converted_ to strings, those strings are of zero length?
Make no mistake; that's _conversion_, not identity.

> In my experience, there aren't all that many cases in which the
> distinction between "" and the undefined value are important.

Programs written without regard for the difference between defined and
undefined values tend to be vulnerable to misbehavior when strings and
numbers are given unexpected values ("", "0", 0).  Under these
circumstances, testing !$x is a false positive, where !defined($x) is
not.

> (If anyone out there knows of obvious pitfalls that beginning Perl
> programmers unaware of the distinction between "" and undefined risk
> falling into, please let me know.)

The most obvious examples are getc, readline (a.k.a. <HANDLE>),
readdir, glob (a.k.a <*.c>), shift/unshift/push/pop, $1 et al after a
successful match, slices like C<(FOO)[NUM]> where FOO is a list
operator or expression ... There are a few more, but I trust that you
won't claim that beginning Perl programmers won't run into undefs from
_any_ such construct.

You know, there's a reason that C<while ($x = <FOO>) {}> generates a
warning.  We don't just throw these things in to make Perl bigger and
impress the chicks/studs.

That you actually wrote a book that downplayes the vital role of undef
appalls me.  That it was _published_ ... well, caveat emptor, I guess.

> (I don't get galley proofs, so I can't fix this myself.)

SAMS is a real class act.
-- 
Chip Salzenberg               - a.k.a. -                <chip@pobox.com>
    Like Perl?  Want to help out?  The Perl Institute: www.perl.org
           ->  Ask me about Perl training and consulting  <-
             "It's the lemon zester of death!!"   // MST3K


------------------------------

Date: 1 Feb 1998 01:21:47 GMT
From: robobob@blech.mindwell.com (Jason)
Subject: Re: URL problems in HTTP::Request call
Message-Id: <slrn6d7jhc.3k.robobob@blech.mindwell.com>

On 29 Jan 1998 05:52:35 GMT, stewart samuel bushman
     <sbushman@students.uiuc.edu> wrote:
>
>I'm trying to just get a script to call up a web page and download the
>text (easy, huh?)  Well, I'm having problems with the initial URL call,
>everything else works fine.  The text of the call is:
>
> my $req = new HTTP::Request POST=>'http://quote.yahoo.com/q?s=orcl';
>
>Entering that URL into Netscape brings up the desired page, but apparantly
>either the question mark or the equal sign is prohibiting perl from
>entering the URL correctly.  Any ideas?
>
There's nothing wrong with that line, the problem must be somewhere else in
your script.  This test script works just fine...

#!/usr/bin/perl

use LWP::UserAgent;

my $ua = new LWP::UserAgent;
my $req = new HTTP::Request POST=>'http://quote.yahoo.com/q?s=orcl';
my $res = $ua->request($req);
print $res->content;

-- 
    Jason Kohles -- System Administrator -- XMission Internet Access
       jason@xmission.com (at work) jason@mindwell.com (at play)

       "We're not surrounded, we're in a target-rich environment!"


------------------------------

Date: Sun, 01 Feb 1998 02:12:15 GMT
From: chip@mail.atlantic.net (Chip Salzenberg)
Subject: Re: Win32 hated here?  Sure.  (Was Re: shut down all services?)
Message-Id: <6b0lpa$fhq$1@cyprus.atlantic.net>

According to Marc.Haber-usenet@gmx.de (Marc Haber):
>chip@mail.atlantic.net (Chip Salzenberg) wrote:
>>Step 2.  Install Linux
>
>This is the second smartass who comes up with a "smart" reply.

If you think we're being "smartasses", then perhaps you misunderstand
our intent.  We are trying to help.  We're a bit jaded from seeing all
the people struggling to stay above water while refusing the free
life preservers, but we _are_ trying to help.

>I will install Linux on that server as soon as Linux integrates nicely
>with Windows 95 and Btrieve runs on it.

Linux's integration with Win95 is excellent.  I run Linux, my wife
runs Win95.  She exports her disk and printer, I export my disk and
printer, we all just get along.  (Of course, her computer crashes
and mine doesn't.  But that's beside the point (for now).)

If you're obsessed about a particular application that doesn't run
under good operating systems, well, I guess you need to stop obsessing
and start figuring out what will really help you in the long term.

>If you don't like questions related to perl scripts running on Windows
>95 or Windows NT and _dare_ using Windows-specific features ...

Actually, I do like them.  It's nice having such easy targets.

>... try to advocate me over to an OS that currently is running our
>Internet firewall but not appropriate for the office application and
>file server.

First, Linux is entirely adequate for "office applications", and it's
so much better a file server than any Windows that it makes me wonder
how you could have failed to hear about it.

Second, WRT advocacy, what do you expect?  Perl is high-value, free,
and supported by dedicated people.  Linux is, too.  Windows is a
low-quality program and the primary leverage of a greedy dangerous
monopoly.  Of *course* we hate Windows.  Of *course* we love Linux.
-- 
Chip Salzenberg               - a.k.a. -                <chip@pobox.com>
    Like Perl?  Want to help out?  The Perl Institute: www.perl.org
           ->  Ask me about Perl training and consulting  <-
             "It's the lemon zester of death!!"   // MST3K


------------------------------

Date: Sun, 01 Feb 1998 02:37:40 GMT
From: Marc.Haber-usenet@gmx.de (Marc Haber)
Subject: Re: Win32 hated here?  Sure.  (Was Re: shut down all services?)
Message-Id: <6b0n5p$gfg$2@nz12.rz.uni-karlsruhe.de>

chip@mail.atlantic.net (Chip Salzenberg) wrote:
> It's nice having such easy targets.

Well, feel free to fire at will at me. Since you are not even trying
to understand my situation and my motives, I won't see any posts from
you in the future.

Greetings
Marc

-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29


------------------------------

Date: Sun, 01 Feb 1998 02:23:16 GMT
From: troy@whadda.com (Troy Denkinger)
Subject: Win32 Venting & The Answer (was Re: Win32: Any scripts to shut down all services?)
Message-Id: <6b0mot$6n9$1@nntp3.interaccess.com>

[also cc'ed via email to the poster]

In article <6b0i68$ev4$2@nz12.rz.uni-karlsruhe.de>, 
Marc.Haber-usenet@gmx.de (Marc Haber) wrote:
>This is the second smartass who comes up with a "smart" reply. I will
>install Linux on that server as soon as Linux integrates nicely with
>Windows 95 and Btrieve runs on it.

Here's the real answer.  Read the Win32::Service module documentation 
that comes with the Win32 5.004_2 port from Sarathy.  This will answer 
the question at hand.

>If you don't like questions related to perl scripts running on Windows
>95 or Windows NT and _dare_ using Windows-specific features, start an
>RfD about comp.lang.perl.win32 or convince Activestate and Gurusamy
>Sarathy to pull their Win32 ports. Or, even better, killfile every
>subject with "Win" in it.

I use Win32 and will also be using Linux soon and I plan to do Perl on 
both platforms.  Sometimes it's just what you have to do.  

However, I read this group and sub to many Perl mailing lists and I'm 
constantly embarrassed by the folks who post Win32 questions.  Now, 
it may be that the dumb Unix/Linux questions don't say "I'm using 
FreeBSD and I don't understand..." while the Win32 questions usually 
mention the OS.

That said, I think there's a general laziness surrounding Win32 people 
that you _can't_ have when you are a Unix person or you'll never get 
anywhere.  It's cultural but that doesn't excuse Win32 users who won't 
do the footwork.

Read the docs, people.  They are there for your edification.  Spend 
time browsing your hard drive and check out docs you can't identify; 
you'll learn things.

Regards,

Troy Denkinger
Using 5.004_2: yep, I'm too lazy to figure out why my attempts to 
compile to the latest version from source isn't working.  I'm not 
exempt.


------------------------------

Date: Sun, 01 Feb 1998 01:12:35 GMT
From: Marc.Haber-usenet@gmx.de (Marc Haber)
Subject: Re: Win32: Any scripts to shut down all services?
Message-Id: <6b0i68$ev4$2@nz12.rz.uni-karlsruhe.de>

chip@mail.atlantic.net (Chip Salzenberg) wrote:
>According to Marc.Haber-usenet@gmx.de (Marc Haber):
>>Did anyone write a script that shuts down all services on a Windows NT
>>machine? Any hints will be appreciated.
>
>Step 2.  Install Linux

This is the second smartass who comes up with a "smart" reply. I will
install Linux on that server as soon as Linux integrates nicely with
Windows 95 and Btrieve runs on it.

If you don't like questions related to perl scripts running on Windows
95 or Windows NT and _dare_ using Windows-specific features, start an
RfD about comp.lang.perl.win32 or convince Activestate and Gurusamy
Sarathy to pull their Win32 ports. Or, even better, killfile every
subject with "Win" in it.

I have been posting numerous questions to clpm now and have not
received a single useable response. People either point me towards the
FAQ (which I actually have read and did not find my answers there) or
try to advocate me over to an OS that currently is running our
Internet firewall but not appropriate for the office application and
file server.

This group is almost useless. A pity because perl is a great tool with
to-be-improved documentation.

Chip, sorry about that vent, but you just pushed me over the edge.

Greetings
Marc

-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29


------------------------------

Date: Sun, 01 Feb 1998 01:01:59 GMT
From: chip@mail.atlantic.net (Chip Salzenberg)
Subject: Re: Windows NT perl mail command
Message-Id: <6b0hlc$fb7$1@cyprus.atlantic.net>

According to vzanini@xplore.it:
>I'm quite new in Windows NT CGI programming using Perl. An obstacle I've
>found hard to pass is the following: how can I send some data (for
>example the one coming from an HTML form) via E-Mail?

At your own risk you may try the Mail::SMTP module.  See CPAN.
-- 
Chip Salzenberg               - a.k.a. -                <chip@pobox.com>
    Like Perl?  Want to help out?  The Perl Institute: www.perl.org
           ->  Ask me about Perl training and consulting  <-
             "It's the lemon zester of death!!"   // MST3K


------------------------------

Date: 8 Mar 97 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 8 Mar 97)
Message-Id: <null>


Administrivia:

The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.

The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.

For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V8 Issue 1780
**************************************

home help back first fref pref prev next nref lref last post