[16246] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 3658 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Jul 13 21:05:26 2000

Date: Thu, 13 Jul 2000 18:05:14 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <963536714-v9-i3658@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Thu, 13 Jul 2000     Volume: 9 Number: 3658

Today's topics:
    Re: Activestate PPM not working for Windows? <9jerry9@my-deja.com>
    Re: Activestate PPM not working for Windows? (Eric Bohlman)
        Advanced Regexp Parsing HELP! Please <nathan.wiger@west.sun.com>
    Re: Advanced Regexp Parsing HELP! Please (Andrew Johnson)
    Re: ATTENTION PERL MACHOES!!!!!!!!!!!!!!!!!!! (Greg Andrews)
    Re: ATTENTION PERL MACHOES!!!!!!!!!!!!!!!!!!! <elaine@chaos.wustl.edu>
    Re: Bizarre BEGIN block problem <ed@nospam.com>
    Re: Bizarre BEGIN block problem <care227@attglobal.net>
    Re: Calling another perl CGI <makarand_kulkarni@my-deja.com>
    Re: CGI-scripts <greenleafcomputersNOgrSPAM@usa.net.invalid>
    Re: Comparing Two Files Problem <makarand_kulkarni@my-deja.com>
    Re: Email Attachments in Perl (no modules) (Eric Bohlman)
    Re: how 2 run CGI scripts on NT 4 (jason)
        How to find out, if a 'nph'-connection was closes by th <hermi@citybeat.de>
    Re: Is there a limit for form of the number of input fi <makarand_kulkarni@my-deja.com>
    Re: Is there a limit for form of the number of input fi (Doran)
    Re: Is there a limit for form of the number of input fi <admin@overdoos.dhs.org>
    Re: Jeopardy Style (Again!) (jason)
        NET::SMTP sanity check please (Russell Smallwood)
    Re: NET::SMTP sanity check please <care227@attglobal.net>
    Re: New to perl, need help (Keith Calvert Ivey)
    Re: Perl CGI and browser timeout (jason)
    Re: PPM problems <barbr-en@online.no>
    Re: Prepared statement SQL (jason)
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

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

Date: Thu, 13 Jul 2000 23:39:37 GMT
From: Jerry Leventer <9jerry9@my-deja.com>
Subject: Re: Activestate PPM not working for Windows?
Message-Id: <8kljvo$99t$1@nnrp1.deja.com>



The Latest Perl Build, 615, v5.6.0 solves the PPM problem.  I was able
to install 'libnet' although I haven't actually tested the module yet.
I needed to look at the file ppmproxy.htm for environment issues
because I was getting 'Server 500' & timeout errors.

-Jerry


> In article <3964EE89.ADAE143F@in.tum.de>,
>   Gerhard Popp <popp@in.tum.de> wrote:
> > Hello,
> >
> > I downloaded a up to date version of perl from www.activate.com.
> > Furtermore I downloaded some Modules, e.g DBI.zip,
Win32-ODBC.zip,...
> > After I had extracted the zip-files, I wanted to install the
> ppd-modules.
> >
> > Now my problem:
> > How could I install this module packages with my Perl Packet
Manager
> > unter WinNT bzw. Win2000?
> > If I start the ppm with e.g.
> >
> >     ppm install Win32-ODBC.ppd
> >     (Win32-ODBC is in the current directory)
> >
> > I got the following error-message:
> >
> >     Error installing package 'Win32-ODBC.ppd': Could not locate a
PPM
> >     binary of Win32-ODBC.ppd for this platform.
> >
> > I know, there are several binary for different platforms, but
> Win32-ODBC
> > doesn't work under NT4.0 or Win2000 too.
> >
> > Knows anybody a solution for this problem or a server, where I
could
> get
> > a other perl-distribution, which is complete or easier to install?
> >
> > Greetings,
> >     Gerhard
> >

> Before you buy.
>


Sent via Deja.com http://www.deja.com/
Before you buy.


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

Date: 14 Jul 2000 00:28:40 GMT
From: ebohlman@netcom.com (Eric Bohlman)
Subject: Re: Activestate PPM not working for Windows?
Message-Id: <8klmro$tu2$8@slb3.atl.mindspring.net>

Jerry Leventer (9jerry9@my-deja.com) wrote:
: I have also had problems with the ActiveState PPM on Windows NT4 & 95.
: I tried,
: 
:        ppm> search Net::SMTP
:   and, ppm> install Net::SMTP
: 
: but, module could not be found (no error msg just blank line with
: prompt).  Looks like I'll have to download the Net:SMTP module from
: ActiveState & use makefiles to build it.

The problem is that Net::SMTP doesn't exist in a vacuum; it's part of a 
bundle called libnet, which includes Net::SMTP, Net::FTP, some other 
protocol-supporting modules and a few modules containing code that's 
common to the rest of them.  "install libnet" should work for you.



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

Date: Thu, 13 Jul 2000 14:52:46 -0700
From: Nathan Wiger <nathan.wiger@west.sun.com>
Subject: Advanced Regexp Parsing HELP! Please
Message-Id: <396E3A2E.9D25ECEE@west.sun.com>

Hi all-

I'm working on a project which has to parse an Apache-like configuration
file. The file it needs to parse will have lines that look like this:

   SomeVariable     /path/name
   SomeArray        index.html index.shtml index.cgi
   SomeScalar       "with spaces in it"
   SomethingTough   mixed array "where some" have "spaces " 

Give this example file, it would then have to set the following hash
reference:

   $config->{somevariable}   = "/path/name";
   $config->{somearray}      = [ index.html, index.shtml, index.cgi ];
   $config->{somescalar}     = "with spaces in it";
   $config->{somethingtough} =
          [ mixed, array, "where some", have, "spaces " ];

So, double quotes are used to distinguish between scalars and arrays,
consistent with Apache and many other config files. The design has to be
flexible enough to handle all the cases above.

I'm 98% of the way there. I'm doing this with regular expression pattern
matches, which is the most efficient way I've found of doing it. The
code is actually really compact:

   # [ ... ] each line of the file is in $_
   ($key) = (m#^(\w+)(?=\s+)#g);              # split up key
   (@val) = (m#\s+(?:"([^"]*)"|(\S+))\n?#g);  # split up val


The regexp should theoretically look for quoted strings and keep them
together, or grab everything that's non-whitespace and keep that
together, thus differentiating on the fly. It seems to work pretty well.

The only problem I'm having is that this ends up inserting blank
elements in the @val array in the following pattern:

   1. after strings with quotes in them
   2. before strings without quotes

So, for example:

   SomeQuoted    "quoted"

Actually gives you:

   $val[0] = "quoted"
   $val[1] = ""

And:

   SomePlainText  unquoted

Gives you:

   $val[0] = ""
   $val[1] = "unquoted"

This is consistent even on mixed values, so:

   SomeMixed   "quoted" unquoted

Gives you:

   $val[0] = "quoted"
   $val[1] = ""
   $val[2] = ""
   $val[3] = "unquoted"

There has GOT to be something fundamental I'm missing here. I've looked
that the regexp I'm using for the @val parsing over and over and still
can't figure out what's wrong with it. Help please!!

Thanks,
Nate


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

Date: Thu, 13 Jul 2000 23:13:35 GMT
From: andrew-johnson@home.com (Andrew Johnson)
Subject: Re: Advanced Regexp Parsing HELP! Please
Message-Id: <z2sb5.7929$k5.98134@news1.rdc1.mb.home.com>

In article <396E3A2E.9D25ECEE@west.sun.com>,
 Nathan Wiger <nathan.wiger@west.sun.com> wrote:
> Hi all-
> 
> I'm working on a project which has to parse an Apache-like configuration
> file. The file it needs to parse will have lines that look like this:
> 
>    SomeVariable     /path/name
>    SomeArray        index.html index.shtml index.cgi
>    SomeScalar       "with spaces in it"
>    SomethingTough   mixed array "where some" have "spaces " 
> 
> Give this example file, it would then have to set the following hash
> reference:
> 
>    $config->{somevariable}   = "/path/name";
>    $config->{somearray}      = [ index.html, index.shtml, index.cgi ];
>    $config->{somescalar}     = "with spaces in it";
>    $config->{somethingtough} =
>           [ mixed, array, "where some", have, "spaces " ];
> 
> So, double quotes are used to distinguish between scalars and arrays,
> consistent with Apache and many other config files. The design has to be
> flexible enough to handle all the cases above.
> 
> I'm 98% of the way there. I'm doing this with regular expression pattern

Without answering your direct question exactly, you could use
a module like Text::ParseWords to achieve your goal. You'd likely
want to provide more validation, avoid blank lines and comments, etc,
but the following might give you something you can work from:

#!/usr/bin/perl -w
use strict;
use Text::ParseWords;

my $config;
while(<DATA>){
    chomp;
    my @parsed = parse_line('\s+',0,$_);
    if(@parsed == 2) {
        $config->{$parsed[0]} = $parsed[1];
    } elsif (@parsed > 2) {
        $config->{$parsed[0]} = [ @parsed[1..$#parsed] ];
    } else {
        warn "problem with line: $.";
    }
}

foreach my $key (keys %$config){
    if( ref $config->{$key} ){
        print "$key : ", map("<$_>", @{$config->{$key}}), "\n";
    } else {
        print "$key : <$config->{$key}>\n";
    }
}

__DATA__
SomeVariable     /path/name
SomeArray        index.html index.shtml index.cgi
SomeScalar       "with spaces in it"
SomethingTough   mixed array "where some" have "spaces "


This prints:
SomeScalar : <with spaces in it>
SomeVariable : </path/name>
SomethingTough : <mixed><array><where some><have><spaces >
SomeArray : <index.html><index.shtml><index.cgi>

Just a thought.
regards,
andrew

-- 
Andrew L. Johnson   http://members.home.net/perl-epwp/
      Optimist:  The glass is half full.
      Pessimist: The glass is half empty.
      Engineer:  The glass is twice as big as it needs to be.


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

Date: 13 Jul 2000 15:44:56 -0700
From: gerg@ncal.verio.com (Greg Andrews)
Subject: Re: ATTENTION PERL MACHOES!!!!!!!!!!!!!!!!!!!
Message-Id: <8klgp8$3mt$1@ncal.verio.com>

p3rlc0dr@my-deja.com writes:
>In article <8kio2a$8uf$1@orpheus.gellyfish.com>,
>  Jonathan Stowe <gellyfish@gellyfish.com> wrote:
>>
>> That is what he is saying.  This is 'crowd control' - you are just
>one of
>> a large number of randon anonymous new posters to this group.  You
>have
>> started out by shouting at people and calling names.  People would
>> rather you would go away so we can get on with answering questions
>from
>> people who are not being like this.
>
>Im not calling names and Im sure you will continue to answer questions
>in a MEAN WAY.
>

And the troll's sock puppet gaily leads the thread further off-topic.


  -Greg
-- 
:::::::::::::::::::  Greg Andrews  gerg@wco.com  :::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


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

Date: Fri, 14 Jul 2000 00:09:44 GMT
From: Elaine -HFB- Ashton <elaine@chaos.wustl.edu>
Subject: Re: ATTENTION PERL MACHOES!!!!!!!!!!!!!!!!!!!
Message-Id: <396E5A46.60C41053@chaos.wustl.edu>

Craig Berry wrote:
> Oldbie: "Matt's scripts are evil.  Use something else."
> Newbie: "But I like Matt's scripts!  You're not being helpful at all!"
> 
> What can you do in this situation?

Leave them to their own demise. Or give them something else to use.
Berating the lost isn't very sporting.

> Quite true.  I, on the other hand, bitch about people who get showered
> with good advice and refuse to listen, but rather continue whining for
> advice.

You can lead a horse to water, but you cannot make them drink. People
either buy a vowel or they don't and turning on the flamethrower
probably isn't going to aid in that endeavour.
 
> : Everyone gripes about Matt Wright yet I see noone making a replacement
> : collection publicly available on the net anywhere. With all the energy
> : spent bitching one could only imagine some of the stuff that might have
> : been made with that energy instead.
> 
> So do it, please!

I don't come around here to wank my ego and I've got enough things as it
is. However, I do believe someone is, in fact, working on something of
this nature which will force some of you to bitch about something else
for a change maybe.

e.


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

Date: Thu, 13 Jul 2000 22:50:58 GMT
From: "Ed Foy" <ed@nospam.com>
Subject: Re: Bizarre BEGIN block problem
Message-Id: <mJrb5.548$dT5.4220@newsread2.prod.itd.earthlink.net>


Tad McClellan wrote in message ...
>On Thu, 13 Jul 2000 17:53:05 GMT, Ed Foy <ed@nospam.com> wrote:
>>
>>Does this comment mean SGML Consulting will only work with the "Latest
>>and Greatest" implementation of something or reinvents the wheel
because
>>the original wheel doesn't use the latest set of bugs?
>
>
>Ad hominem attack.
>
>I'm not feeling sorry anymore.
>
>*plonk*


Hmmm...not very professional. In fact, the question was in earnest and
consistent with your statement. With new projects it is reasonable to
start with a clean sheet and people who can work with currency. Those
who are wedded to the "old ways" are fine for maintenance projects but
useless for new projects.

FYI, apart from asking the occasional question in NGs, I follow the
questions, response, the names of the players and their companies. It is
exceedingly useful to do so. Resumes are twitted out based on NG
activity and companies are also similarly excluded.

I do not know if SGML is your employer or a pseudonym for your
unemployment. It matters not as both are now listed in the twit file.
You complete childishness and lack of professionalism speak volumes.
Alas, yes, I'm one of those stupid executive management types. But on
the bright side, I'm on the top of the heap when it comes to who gets
their next paycheck and who doesn't, who gets a contract and who
doesn't, and who we conduct business with and who we don't. This facet
makes up for being so stupid.

For others in the NG take heed. It is common practice for management and
human resources types to follow NGs for the purpose of establishing
competency in professional fields. Those who cannot conduct themselves
in a professional manner in a professional forum will behave the same
way in the work environment. So if you don't mind limiting your
horizons, by all means, get out in public and be a complete jerk - it
save a lot of time and money to trash your resume as soon as it comes in
the door. The same applies to your employer. Any company willing to
tolerate childishness is not a company trustworthy to conduct business
with.

Just gotta love these NGs!

Ed




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

Date: Thu, 13 Jul 2000 20:59:57 -0400
From: Drew Simonis <care227@attglobal.net>
Subject: Re: Bizarre BEGIN block problem
Message-Id: <396E660D.3E5CB08E@attglobal.net>

Ed Foy wrote:
> 
> Hmmm...not very professional. In fact, the question was in earnest and

I still can't grasp why people expect you to act as you are in
a business meeting while posting to a NG.  I'm here for fun,
to relax and to learn.  I'm not here to make sure that I am 
behaving consistent with my companies corporate culture or in 
line with generations of Ms. Manners.  

> consistent with your statement. With new projects it is reasonable to
> start with a clean sheet and people who can work with currency. Those
> who are wedded to the "old ways" are fine for maintenance projects but
> useless for new projects.

I think Tad's point was exactly that.  Using old technology isn't
the way to go.  Or did I misread?  

> FYI, apart from asking the occasional question in NGs, I follow the
> questions, response, the names of the players and their companies. It is
> exceedingly useful to do so. Resumes are twitted out based on NG
> activity and companies are also similarly excluded.

The most competent people I know at work refuse to mingle with 
the rabble in newsgroups. (I think by association I am rabble) 
Or they just don't have time.  Sounds like you'd be excluding 
alot of these people if what you say is indeed true.  

 > I do not know if SGML is your employer or a pseudonym for your

SGML = Standard Generalized Markup Language.  Its a language for 
making markup languages like HTML in.  I would gather that Tad helps
folks use SGML.  

> unemployment. It matters not as both are now listed in the twit file.
> You complete childishness and lack of professionalism speak volumes.

Not meaning to jump in, but your weenie wagging is a bit childish
as well.

> Alas, yes, I'm one of those stupid executive management types. But on
> the bright side, I'm on the top of the heap when it comes to who gets
> their next paycheck and who doesn't, who gets a contract and who
> doesn't, and who we conduct business with and who we don't. This facet
> makes up for being so stupid.

I wish my executives recognised their stupidity =)
 
> For others in the NG take heed. It is common practice for management and
> human resources types to follow NGs for the purpose of establishing
> competency in professional fields. 

Oh crap.  Maybe I'd better write some filtering software for when 
my rude factor exceeds a certain limit.  It can add a smiley, and 
everyone will be happy.  Then I can get a job I like.  Yay.  (Did 
the smiley above lessen the rudeness of calling executives stupid?)

> 
> Just gotta love these NGs!
> 

Yay


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

Date: Thu, 13 Jul 2000 15:56:58 -0700
From: Makarand Kulkarni <makarand_kulkarni@my-deja.com>
To: Jimtaylor5 <jimtaylor5@aol.com>
Subject: Re: Calling another perl CGI
Message-Id: <396E493A.52B17C04@my-deja.com>

> 
> I'm using a perl program to process a form, what I want to do is have my perl
> program redirect the form input to another perl program (if certain criterea
> are met). I know all of that of course, but what I need to know is how do I
> call or switch to another perl program from inside the first one. Thanks in
> advance for anyone giving me some assistance on solving this baffling problem.

Correct way of doing this is  to call the next CGI program
using HTTP::Request::Common

The perldoc will explain this.


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

Date: Thu, 13 Jul 2000 17:51:49 -0700
From: Jack <greenleafcomputersNOgrSPAM@usa.net.invalid>
Subject: Re: CGI-scripts
Message-Id: <2884fc10.6d4825fe@usw-ex0103-019.remarq.com>

Take a look on one of the script directories, like
http://www.cgiextremes.com/

J


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

Got questions?  Get answers over the phone at Keen.com.
Up to 100 minutes free!
http://www.keen.com



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

Date: Thu, 13 Jul 2000 15:29:42 -0700
From: Makarand Kulkarni <makarand_kulkarni@my-deja.com>
Subject: Re: Comparing Two Files Problem
Message-Id: <396E42D6.294FA6BA@my-deja.com>

> Would it be wise to assign the contents of "new" to one variable considering
> enormous file size?  The statement [my @temp = <NEW>;] will result in a 1.7G
> variable; can Perl handle it?
normal diff operates by loading both files into main memory.
If this method fails then it scans the files sequentially to compute
hash codes of the lines. Then it continues to operate on these hash
codes. For more information
read the gnu docs for diffutils.
-


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

Date: 13 Jul 2000 23:31:21 GMT
From: ebohlman@netcom.com (Eric Bohlman)
Subject: Re: Email Attachments in Perl (no modules)
Message-Id: <8kljg9$tu2$7@slb3.atl.mindspring.net>

Dan Woods (dwoods@ucalgary.ca) wrote:
: But what is the best way to attach files (text or binary) if you are
: not allowed to install Perl modules ?  There are lots of people using
: hosting companies that either don't allow, or don't want to install
: modules.

You read the section in perlfaq8 about how to install modules in your own 
directories.  The advice won't necessarily help if you're dealing with 
modules that require compilation of C code, but MIME:Lite is pure Perl code.

When a Web host says they don't allow installing modules, what they
normally mean is that they don't allow users to install modules in the
common Perl tree accessible to all the service's users; there are usually
good reasons for this (such as a user overwriting an existing module that
other people are using with a buggy version).  But it would be a bizarre
policy indeed to allow users to install arbitrary code in their own
directories, but only if it doesn't appear on CPAN.  If a hosting company
really does have the latter policy, they're not worth the hassle of
dealing with; they're running their service based on superstition rather
than facts. 



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

Date: Fri, 14 Jul 2000 00:18:02 GMT
From: elephant@squirrelgroup.com (jason)
Subject: Re: how 2 run CGI scripts on NT 4
Message-Id: <MPG.13d8f9867a3ad685989699@news>

hqcu@yahoo.com wrote ..
>CGI scripts are all over the place, but how can I get them to run on
>Windows NT?

assuming you're using the standard Win32 port of Perl from ActiveState 
 .. reinstall Perl now that you have PWS running - the install will make 
the necessary changes

then check out the ActivePerl documentation - there should be a link to 
it on your Start menu

-- 
  jason -- elephant@squirrelgroup.com --


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

Date: Fri, 14 Jul 2000 01:05:36 +0200
From: "Hermann-Marcus Behrens" <hermi@citybeat.de>
Subject: How to find out, if a 'nph'-connection was closes by the client?
Message-Id: <396e3dab$1@news.netwave.de>

I'm programming a perl script, which will work like a small web-server,
running on a random port. The users connect through any common webbrowser
and the script will start writing all chat-inputs shares trhough
IPC::Shareable.

My problem: How to find out, that the users stopped watching the
chat-output?

ciao, Hermi




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

Date: Thu, 13 Jul 2000 15:08:23 -0700
From: Makarand Kulkarni <makarand_kulkarni@my-deja.com>
To: Amy <amy@wirespeed.com>
Subject: Re: Is there a limit for form of the number of input fields?
Message-Id: <396E3DD7.1B338954@my-deja.com>

> I wonder, is there a limit for form of the # of input fields? Can somebody
> tell me about this?  If there isn't one, I guess I have to find out why this
> happens to me.
There is no such limit. However, the browser will not show a HTML page
properly with too many items in a form ( depending on how many items
there are and what types there are ). For example if you 
were running low on memory and had lots of drop down lists inside
forms then there is a chance that the last few lists will not
be drawn. Try spreading out each topic on a different page.


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

Date: Thu, 13 Jul 2000 23:29:55 GMT
From: doran@NOSPAMaltx.net (Doran)
Subject: Re: Is there a limit for form of the number of input fields?
Message-Id: <396e4e80.113795335@news2.brandx.net>

>I wonder, is there a limit for form of the # of input fields? Can somebody
>tell me about this?  If there isn't one, I guess I have to find out why this
>happens to me.

Actually, this isn't a perl question. And this is a perl newsgroup, so
it's probably best asked elsewhere. That said:

I've got forms with dozens of input fields. No problem.

Do you have a single <form></form> or does each topic have it's own
<form></form>? Maybe it's a nesting problem. Also, if you're using
tables, there are sometimes problems when trying to span a form across
several cells or rows. Again, these are questions best asked in a CGI
or HTML newsgroup.

good luck,
Doran...




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

Date: Fri, 14 Jul 2000 00:41:47 GMT
From: "Gmo" <admin@overdoos.dhs.org>
Subject: Re: Is there a limit for form of the number of input fields?
Message-Id: <fltb5.136964$xe3.968443@nlnews00.chello.com>

I thought the get methode of forms where limited in length of characters
input  and the post methode can contain more characters input to the cgi it
that makes sence. if im right on this that might be it .. or the next page
that was totally blank html was a script that didnt work right.

Me =]

--
________________________________________

Cuurent Project: Linking Directory
http://www.overdoos.com/
________________________________________
Amy <amy@wirespeed.com> wrote in message
news:smsc3dp7nd6128@corp.supernews.com...
> I am using Perl to write a webpage and let the user to enter information
for
> many topics, each topic has 8 input fields.  I gradually increased the
> number of topics all the way to 7, they all works fine after I submitted
and
> the data were saved.  but when I used 8 or larger number, the next page
> after the submitted button totally blank.
>
> I wonder, is there a limit for form of the # of input fields? Can somebody
> tell me about this?  If there isn't one, I guess I have to find out why
this
> happens to me.
>
> Thanks!
>
> Amy!
>
>
>
>




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

Date: Thu, 13 Jul 2000 23:44:56 GMT
From: elephant@squirrelgroup.com (jason)
Subject: Re: Jeopardy Style (Again!)
Message-Id: <MPG.13d8f1c2dce11b73989697@news>

Drew Simonis wrote ..
>It is kinda a Usenet tradition to "lurk" in a NG before posting.

an all but forgotten tradition .. I'm in two minds about this whole 
thing

on one side I'm aware of how it happens - someone gets a new computer 
and through general market forces sign up with AOL .. there's no 
instructions as to how to behave in newsgroups (or even a clear 
delineation that they're posting to a newsgroup) so they just use their 
posting client the way it was designed .. it puts them above the quoted 
text - so they start writing

on the other side .. I don't think I'd ever turn up to an international 
open house party that was in full swing and start right on in without 
first getting a feel for the language used and general communication 
protocols that were being observed

it's a problem with no simple solution .. although I like the 
c.i.w.a.cgi self-moderation thing - at least you have to read an article 
before posting successfully

>Jeff Susanj wrote:
>> Often I will read a new
>> newsgroup for some time before I post just to get a feel for what the
>> standards are.  It still doesn't keep me out of trouble as I did not see
>> immediately that people weren't generally using Jeopardy style quoting. 
>
>Must not have spent that much time then, eh? =) (I include a smiley 
>so you don't join the side that may think I'm a prick)

to be honest - c.l.p.misc can't blame anyone for not knowing the 
protocols here (although jeopardy posting is an exception because it's 
not a newsgroup specific thing) because it has no FAQ

'course - the FAQ would have to be posted hourly to keep up with the 
traffic ;) .. although a combination of c.i.w.a.cgi self-moderation and 
daily FAQ posting would go a long way to reducing the clutter

-- 
  jason -- elephant@squirrelgroup.com --


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

Date: Thu, 13 Jul 2000 20:18:57 -0500
From: rsmallwood@mindspring.com (Russell Smallwood)
Subject: NET::SMTP sanity check please
Message-Id: <MPG.13d834776d9d6de198975e@news.giganews.com>

All,

I'm a moderate newbie when it comes to mail.  I've read the FAQ 
regarding sending mail on an NT platform and I've installed the netlib 
and read through the docs...here's the question

I have a stand-alone NT server that I'm hosting a company site on and 
the only smtp server that it has access to is mail.mindspring.com.  I'm 
guessing that, once correctly identified, I should be able to send a 
message to that server using net::smtp..right?  How do i send a 
password?

Am I missing the point, do I need a private SMTP server to act as a 
relay point?  This would be bad, as I don't think even if I go through 
the trouble of installing Exchange Server or something, that Mindspring 
would allow me to forward mail to it's server in this way.  I have a 
corporate mail server but it is on a different network, in another part 
of town and the SMTP external interface is disabled for security 
purposes.  Is there another module that will allow me to logon to a 
public smtp server like this, forwarding a username and password?  
Perhaps I forgot to take my Ritalin and missed something in the docs?


Russell


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

Date: Thu, 13 Jul 2000 20:45:43 -0400
From: Drew Simonis <care227@attglobal.net>
Subject: Re: NET::SMTP sanity check please
Message-Id: <396E62B7.60AEA51C@attglobal.net>

Russell Smallwood wrote:
> 
> 
> I have a stand-alone NT server that I'm hosting a company site on and
> the only smtp server that it has access to is mail.mindspring.com.  I'm
> guessing that, once correctly identified, I should be able to send a
> message to that server using net::smtp..right?  How do i send a
> password?

Mindspring requires a password for SMTP access?


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

Date: Fri, 14 Jul 2000 00:44:19 GMT
From: kcivey@cpcug.org (Keith Calvert Ivey)
Subject: Re: New to perl, need help
Message-Id: <39705cef.1313343@nntp.idsonline.com>

Ala Qumsieh <aqumsieh@hyperchip.com> wrote:
>Uri Guttman <uri@sysarch.com> writes:

>> it can be shortened a bit like this by removing the init code:
>> perl -le '$n=shift;($f1,$f2)=($f2,$f1+$f2||1), print $f1 while --$n' 10
>
>If you don't care about warnings, then we can cheat a little:
>
>	perl -wle '($*,$^W)=($^W,$^W+$*),print$*for 0..pop' 10

Interesting use of $^W.  The ^W there must mean an actual
control character rather than ^ followed by W (do all shells
allow that?).  Otherwise, it's one longer than the more obvious

 	perl -le '($*,$W)=($W,$*+$W||1),print$*for 0..pop' 10

which doesn't give any warnings.  Actually, why are you using
$*?  With $- instead, you wouldn't get any warnings.

-- 
Keith C. Ivey <kcivey@cpcug.org>
Washington, DC


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----


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

Date: Fri, 14 Jul 2000 00:49:14 GMT
From: elephant@squirrelgroup.com (jason)
Subject: Re: Perl CGI and browser timeout
Message-Id: <MPG.13d900d6ac8fa8af98969d@news>

Jean-Sebastien Morisset wrote ..
>I've written a CGI perl script which does a system call to run an
>executable. While this is running, the browser can time-out waiting for
>the CGI to update the screen. Can anyone suggest a way to prevent this?

you can try setting autoflush on STDOUT then outputting the HTTP headers 
to the browser .. that should make it wait for the output .. not sure 
how long - could be indefinitely - it's browser dependant

>Thanks,
>js.
>--
 ^^...this should have a trailing space to be a proper sigdash

-- 
  jason -- elephant@squirrelgroup.com --


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

Date: Fri, 14 Jul 2000 00:45:42 +0200
From: "Kåre Olai Lindbach" <barbr-en@online.no>
Subject: Re: PPM problems
Message-Id: <5Frb5.13068$MS3.243635@news1.online.no>


Greg Griffiths <greg2@surfaid.org> skrev i
meldingsnyheter:396B79CA.329AEF73@surfaid.org...
> As far as I could tell on a clean win98 build you just needed to instlal
the MS
> Installer and then AP 613 and then the PPM hotfix.

Sorry, I almost give up. Maybe no good comfort for you telling you that my
installation went right the first time.
I also refer to the AP 613.
Did you run the PPM hotfix.bat in the right perl\bin-catalog?
Look into the bat-file and see what it does.

> have reinstalled twice with 519 and failed, each time using a clean Win98
build
> (no extras, just Win and Office), reverted back to AP 509 and have no
problems -
> except the data and time I've lost to get back to where I was before I
started.

You still meen AP613, not 519, I guess. I do know about the feeling you have
about loosing time and data.

Maybe you should look into the newest release AP615. I have just installed
it into a separate catalog:
"d:\perl615" on my win98 machine. I still have AP613 in my "d:\perl".
AP 615 installation info state that it should *not be installed* on top of a
AP 5xx build-version. My AP613 are, though!
AP522 still shows in Add/Remove programs, and resided in "d:\perl" when I
installed.

But AP615 need no ppmfix, only that your MS Installer are as new as in
AP613. (It refers to the same version of InstMsi.exe).

Well, I have tested my AP615, no problems using it to install other *.ppd
using PPM. I always use MSDOS-shell and go to my perl-bin-cat (Ex:
"d:\perl615\bin")
before I run PPM.

Still hoping for you to succeed!

Regards,

--
mvh
Kåre Olai Lindbach
(LLP - 955626397 MVA)
+ 47 61282501(home/job)
+ 47 61282502(fax)
barbr-en@online.no






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

Date: Fri, 14 Jul 2000 00:46:03 GMT
From: elephant@squirrelgroup.com (jason)
Subject: Re: Prepared statement SQL
Message-Id: <MPG.13d9001bdc0cf5d998969c@news>

brainmuffin@excite.com wrote ..
>I am using mySQL as the database server.  I have a Perl script that
>uses a prepared statement with variable substitution...that is, it
>has ? is it.  Is there anyway to see the SQL statement it executes WITH
>the variables substituted??

I don't believe that there is a way to retrieve this value from the DBI 
module

you need to prepare a static query .. check out the DBI::quote method in 
the docs - it will prepare your data correctly for the query based on 
either it's type or the type you specify
 
so assuming that you've got a VARCHAR that needs to be substituted in 
 .. the line of code would look something like this
 
  my $sql = sprintf "select foo, bar from table where baz=%s"
                 => $dbh->quote( $foo, SQL_VARCHAR);

then you use $sql in your prepare method

-- 
  jason -- elephant@squirrelgroup.com --


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

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


Administrivia:

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

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

| NOTE: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.

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

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

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


------------------------------
End of Perl-Users Digest V9 Issue 3658
**************************************


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