[8267] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 1884 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Feb 13 00:08:10 1998

Date: Thu, 12 Feb 98 21:00:27 -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           Thu, 12 Feb 1998     Volume: 8 Number: 1884

Today's topics:
    Re: "Teach Yourself Perl in 21 days" (Was: Re: substitu <rjk@coos.dartmouth.edu>
    Re: `-w' should warn on ({} + 0) <dgoddard@us.oracle.com>
        A Pubilc Apology. <lovegod@earthling.net>
        A Public Apology <lovegod@earthling.net>
        auto responder script (Benji Spencer)
        Bug report: perl-mode incorrectly matches hairy parenth <brannon@surf.usc.edu>
    Re: CGI vs ASP debate (Martien Verbruggen)
    Re: CRs in scripts - ARGH! <lovegod@earthling.net>
    Re: does perl store the shattered remains of an attempt <zenin@best.com>
    Re: Forgery => Killfile <kperrier@Starbase.NeoSoft.COM>
    Re: FTP as filehandle (Jeffrey Drumm)
    Re: Help: "use strict" & passing variables to subroutin (Martien Verbruggen)
    Re: How the Hell do I...? (Mark Kramer)
        Location: returns empty document? <schmitzp@no.spam.wxs.nl>
    Re: LWP.pm Question (Martien Verbruggen)
    Re: Moderated ng [Was: Re: So what about last summer's  <rra@stanford.edu>
    Re: Moderated ng [Was: Re: So what about last summer's  (Nathan V. Patwardhan)
        Over comming ODBC's slowness in Perl (David Stack)
        perl -e in Win95? (lethr)
    Re: Perl and fast (big) file parsing <dgoddard@us.oracle.com>
        Perl Syntax Coloring For Visual Studio???? <mschreiber@advancedsw.com>
        Perl use on IIS 4 <tthomas@netacc.net>
    Re: RFC about "Matt's Script Archive" (Mark Kramer)
    Re: RFC about "Matt's Script Archive" (Nathan V. Patwardhan)
    Re: So what about last summer's RFD?  Let's go moderate (John Stanley)
        Tell me your programming highs! johnnyzine@hotmail.com
    Re: The Young Man and the Beach (Mark Kramer)
    Re: training recommendation? (Martien Verbruggen)
    Re: Why is Tom Christiansen so rude? <zenin@best.com>
    Re: Why is Tom Christiansen so rude? <efinch@vais.net>
    Re: WWW Page (Martien Verbruggen)
        Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)

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

Date: Thu, 12 Feb 1998 22:13:24 -0500
From: Chipmunk <rjk@coos.dartmouth.edu>
Subject: Re: "Teach Yourself Perl in 21 days" (Was: Re: substitute...)
Message-Id: <34E3BA54.DD445D7F@coos.dartmouth.edu>

Tom Christiansen wrote:
> 
> In comp.lang.perl.misc, Martin Bialasinski <agr30@uni-koeln.de> writes:
> :Anyway, the Panther book is better then both books. Never seen a technical
> :book that good (although the erratum is quite long already :-( ).
> 
> (In English, like Latin, we tend to say "errata are" for a list of them, and
>  "erratum is" for just one.)

Actually, each individual erratum is probably fairly short.  It would be more
accurate to say "the list of errata is quite long".  :-)

Chipmunk


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

Date: Thu, 12 Feb 1998 20:44:32 -0800
From: Denis Goddard <dgoddard@us.oracle.com>
Subject: Re: `-w' should warn on ({} + 0)
Message-Id: <34E3CFB0.81E1B1EB@us.oracle.com>

Junio Hamano wrote:
> 
> I think `use strict' and `-w' should give a warning when a
> reference is coerced into an integer for any reason other than
> being on either rhs or lhs of a numerical comparison operator.

I have to agree.

While Perl coerces $r into being a number upon processing:

    $r = [];
    $r += 0;  # no problemo!

I have a hard time imagining cases where this is the desired behavior.
A Reference is not a Pointer, right? So therefore we should avoid the
evils of fooling with Pointer Arithmetic?

Granted, 'use strict;' will prevent us from attempting to *dereference*
the coerced variable:

    $$r[1] = "glarch";
    Can't use string ("929400") as an ARRAY ref while "strict refs" in use

so it's unlikely that we'd get very far after the error.
But still...

> I noticed this behavior when I was trying to figure out whether
> I should use `==' or `eq' to find out if two objects are the
> same.

Interestingly, perlobj does not mention the subject of equality.
Neither does perltoot, which does manage to touch on many other
common issues. It seems to me that:

 EITHER the (well-stated!) info given by Junio should be included,
 OR there should be a warning that such behavior is *not* guaranteed,
    and that therefore objects need to have their own equality-test methods,
    and references are just out the window.

> Anyway, the above assumes that the hexadecimal number that
> appear in "$ref" or that is returned by ($ref + 0) is the
> address of the thingy (or some other number uniquely identifies
> the thingy) $ref refers to.

 ...and let's continue to think of it in the latter fashion!

>     Using a reference on either side of a numerical comparison
>     operator coerces the reference into an integer.  The
>     resulting integer obtained by such a coersion is guaranteed
>     to be the same for references referring to the same thingy
>     during the thingy's lifetime.  Also, if two references
>     referring to different thingies are coerced into integers,
>     the results are guaranteed to be different.

Hear, hear!

-Denis
(who is too lazy to verify or refute the
"guarante to be the same for references referring to the same thingy"
that is the crux of this issue, though I *have* checked the relevant
bits of sv.c, specifically new_xrv(), which seems to me that any new
reference to an item gets the same number (value of the pointer),
though from this alone one cannot guarantee that this value is never
changed, swapped, etc.)

static XRV*
new_xrv()
{
    XRV* xrv;
    if (xrv_root) {
        xrv = xrv_root;
        xrv_root = (XRV*)xrv->xrv_rv;
        return xrv;
    }
    return more_xrv();
}

-Denis

-- 
     __  __  _  __     __
~~~~(__)|-< /-\(__ |__(-_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Denis Goddard, Senior Member, Tech. Staff  |"I see the heads of men arise
email: dgoddard@us.oracle.com              |with hungry minds and open eyes!"
ourworld.compuserve.com/homepages/d_goddard| -Rush, from 2112: _The Oracle_


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

Date: Thu, 12 Feb 1998 22:12:05 -0600
From: Rich Grise <lovegod@earthling.net>
Subject: A Pubilc Apology.
Message-Id: <34E3C815.2ADB@earthling.net>

I flew off the handle a few days ago, and it turns out
I was wrong. It wasn't Mr. Christiansen (sp?) who issued
the insult, it was some other person. All Mr Christianesn
did was to tell me that my posting wasn't formatted right,
and I blew up because I was still in a snit from that 
previous post, and I lost track of whom I was flaming. Mr.
Christiansen, I ask your forgiveness for my being such 
a fool, and an abusive one at that.

Humility is NOT one of the most desired places on the
planet, is it?

Yes, I'm sorry, I beg your forgiveness, I was a fool, and
that's the last time. OK?

Rich Grise



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

Date: Thu, 12 Feb 1998 19:03:24 -0600
From: Rich Grise <lovegod@earthling.net>
Subject: A Public Apology
Message-Id: <34E39BDC.1D8A@earthling.net>

Yeah, OK, I was out of line, I was an idiot (I still 
might be one, that's a different thread)
I flamed Mr. Christiansen (sp?) and have realized that
I was wrong.

I flamed some guy for some remark that, to paraphrase,
went something like, "if you can't figure that out, you're
probably not clever enough to use a computer."

That was the guy I intended to flame. Somehow, Mr. 
Christiansen (sp?) got sucked into the fiasco, and 
if the record I have is accurate, Mr. Christiansen (sp?)
had his auto-responder tell me I didn't format my 
post right. 

Fair enough. I'll lighten up on my flames, since I 
now understand these things:

1. I flamed the wrong guy.
2. Mr. Christiansen needs to have an autoresponder 
because of the volume of posts he receives.
3. When I intend to flame someone, I'd better pay
attention to just exactly whom I'm flaming.

I'm sorry, and I have a perl question, and I 
don't like the feeling of having made myself
a pariah because of being a fool.

If I can ask your forgiveness, I'd like to retract
my previous insulting things I posted about Mr.
Christiansen (sp?), and have everyone understand
that it was my mistake, and yes, Mr. Christiansen(sp?)
is probably, one of 3 perl gurus in the entire known
Universe, and that's OK with me, too.

I screwed up, and I'm sorry. My screwup was flaming the
wrong guy, but that's irrelevant. I shouldn't flame,
and I feel like I should say, "I've learned my lesson".
or something.

Thanks.
Rich <img src="http://virtual-mktg.com/entheos/images/HappyFace2/gif"
align="absmiddle">




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

Date: Fri, 13 Feb 1998 02:13:31 GMT
From: spunge@ripco.com (Benji Spencer)
Subject: auto responder script
Message-Id: <34e3ab3c.133586415@news.enteract.com>

I am looking for a auto responder script. I knwo this wouldn't be all
that hard to do, but I am sure someone out there has already written
one, probably better then I could. I however, wasn't too sure where to
start looking for something like this.

what I need to be able to do, is email somethign like info@domain.com,
and have the auto responder send info back (via aliases). Nothgin real
hard.

if anyone has ideas, please let me know. it would also help if you
cc'ed me in the email, as tis group tends to be a bit busy. Thanks

benji

(:------------------------Benji Spencer----------------------------:)
     spunge@enteract.com	  http://www.enteract.com/~spunge
     spunge@ripco.com 		  http://www.ripco.com/~spunge   
     ben@anduin.eldar.org	  http://anduin.eldar.org/~ben   
  PGP public key can be retrieved by fingering ben@anduin.eldar.org


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

Date: 12 Feb 1998 19:50:16 -0800
From: Terrence Brannon <brannon@surf.usc.edu>
Subject: Bug report: perl-mode incorrectly matches hairy parenths
Message-Id: <lben18f9jb.fsf@surf.usc.edu>

no response to M-x report-emacs-bug, so:

print @{${$dbmhash{pairs}{a}{B}, "\n";
insert a close paren    ^^ here and watch it match the wrong one
-- 
Terrence Brannon * brannon@lnc.usc.edu * http://lnc.usc.edu/~brannon
USC, HNB, 3614 Watt Way, Los Angeles, CA 90089-2520 * (213) 740-3397
Great Milk Debate...  http://www.milk.com vs. http://www.notmilk.com


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

Date: 13 Feb 1998 02:22:32 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: CGI vs ASP debate
Message-Id: <6c0ap8$bke$5@comdyn.comdyn.com.au>

In article <6c06ku$1q4q$1@node17.cwnet.frontiernet.net>,
	"Paul S" <psherman@frontiernet.net> writes:
> Anyone going to put in their two cents tonight about the continued
> usefulness of Perl?  I'm hosting a 2-hour chat/debate thing running
> on a Perl script (PWS on Win95) from 9-11 pm EST.

Ok, here's input:

Perl != CGI. CGI != Perl. if the subject is 'CGI vs. ASP', then you
should talk about CGI, NOT perl.

If the subject of the 'chat' is going to be 'the usefulness of perl',
then you needn't bother. It's highly useful. For many, many tasks. ONE
of those tasks might be some CGI application.

Really, if you're hosting this thing, you should know about these
distinctions.

Martien
-- 
Martien Verbruggen                  | 
Webmaster www.tradingpost.com.au    | We are born naked, wet and hungry. Then
Commercial Dynamics Pty. Ltd.       | things get worse.
NSW, Australia                      | 


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

Date: Thu, 12 Feb 1998 22:41:09 -0600
From: Rich Grise <lovegod@earthling.net>
Subject: Re: CRs in scripts - ARGH!
Message-Id: <34E3CEE5.2F9A@earthling.net>

Russ Allbery wrote:
> 
[whole bunch stuff]

is it possible to ask, (maybe I should ask in the CGI
group) does perl (or maybe Unix shell - I hear it's possible
to access that with a backtick or something) have anything
like a "dir" function? I've got a script that creates a 
directory, and then writes files to it. When one of those
becomes extraneous (whole directories, that is) , not
only can I not delete it with FTP ( the owner is something
like "nobody") but I have to go through the whole dir
structure of the thing and write a little script that will
delete each and every file. Can't that be done automaticllly?
Should I go ask in the CGI area?
I swear, I'm really, really sorry about flaming Mr. Christiansen;
I was distraught that evening, but that's still no excuse.
Mea Culpa.

So, how do you do a "dir" (or whatever it's called in unix - maybe,
'ls'?)

Thanks
Rich



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

Date: 13 Feb 1998 03:08:03 GMT
From: Zenin <zenin@best.com>
Subject: Re: does perl store the shattered remains of an attempted match?
Message-Id: <887339547.662331@thrush.omix.com>

Russ Allbery <rra@stanford.edu> wrote:
: Kevin B Cohen <kcohen@julius.ling.ohio-state.edu> writes:
	>snip<
: > i might want to know something like "if it failed, did it at least reach
: > the bunch of arcane stuff?"

	Hmm, not exactly, but you can get close.

: I don't believe Perl stores that information; I think the best you can do
: is retry the match without the arcane stuff and see if that succeeds.

	Or match both, and check for the arcane stuff.

	($animal, $arcane) = ('cat other stuff' =~ /(cat|dog)\s(foobar|)/);
	if ($arcane) {
		found arcane
	} else {
		didn't
	}

	But you still have $animal in both cases.

-- 
-Zenin
 zenin@best.com


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

Date: 12 Feb 1998 22:47:18 -0600
From: Kent Perrier <kperrier@Starbase.NeoSoft.COM>
Subject: Re: Forgery => Killfile
Message-Id: <cs3eho9kmh.fsf@Starbase.NeoSoft.COM>

meo@qld.mim.com.au.SPAMMERGOHOME (Martin Oakley) writes:

> 
> Well Tom probably won't see this post (if spam is a case-insensitive
> match), but I've got to point out that not everyone has an environment
> where mail filters are possible. Some,  myself included, are forced to
> use M$ mailers though NO fault of their own.
> So without incoming mail filtering , one does what one can to reduce
> the clutter at the source.
> 

Oh good Lord!  EIther go out and purchase a copy of Eudora Pro or use
(gasp) the email client in Communicator (but please turn off the html
publishing feature first) and use the built in filter functions of these
clients.

There are plenty of mail clients on M$ operating systems that have built
in filtering.

Kent
-- 
Kent Perrier                             kperrier@neosoft.com 
Corporations don't have opinions, people do.  These are mine.


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

Date: Thu, 12 Feb 1998 23:49:44 GMT
From: drummj@mail.mmc.org (Jeffrey Drumm)
Subject: Re: FTP as filehandle
Message-Id: <34e48a8d.260289723@news.mmc.org>

On Thu, 12 Feb 1998 20:37:39 GMT, traveler@rust.net (Reilly Shea) wrote:

>I've been pulling my hair out on this one, reading pg 191-194 of the Camel 
>book over and over, and still no luck. The answer is probably simple but....   
>    
>  I open an ftp process as a filehandle doing the following..

(stuff deleted)

You did a bit of homework, so I'll be nice :-)

If you've got a current version of Perl (5.004+) you've already got the
best tool in the world for doing this sort of thing: Graham Barr's libnet
distribution, which includes FTP.pm.

#!/usr/local/bin/perl -w

use Net::FTP;

my $ftp = Net::FTP->new('hostname') or die "Uh oh: can\'t connect!\n";
$ftp->login('username','password') or
	 die "can\'t log in: " . $ftp->message() . "\n";
$ftp->get('source','target') or 
	die "Couldn\'t get file: " . $ftp->message() . "\n";
$ftp->quit();

And soooo much more . . .

-- 
Jeffrey R. Drumm, Systems Integration Specialist
Maine Medical Center Information Services
420 Cumberland Ave, Portland, ME 04101
drummj@mail.mmc.org


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

Date: 13 Feb 1998 02:18:27 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: Help: "use strict" & passing variables to subroutine (part 2)
Message-Id: <6c0ahj$bke$4@comdyn.comdyn.com.au>

[comp.land.perl.modules is a non-existing group. You probably wanted
to post to comp.lang.perl.modules, but it's a good thing you didn't.
This isn't really a modules question]

In article <34E3630B.E861CA82@technologist.com>,
	Tommy <tkho@technologist.com> writes:

> I am a novice in using strict.pm. Does anyone know how to correct this
> script to make it work with "use strict". The only problem is that I
> can't declare the variable "*id" and "*in" in the main program.
> The script work perfectly without the line "use strict;".

> sub ParseTable {
>   local(*id,*in);

You are using mixed perl4 and perl5 ways of doing things. You most
likely do not want to use local, but my. You most likely don't want to
use symbolic references, but hard ones. In this case, you want
something like:

ParseTable(\@text)

sub ParseTable
{
	my $text_ref = shift;

	my $id = $text_ref->[0];
	...
}

You should read a few documentation pages:

perldoc perlref
perldoc perlsub
perldoc strict
perldoc -f local
perldoc -f my

And possibly

perldoc perldata
perldoc perllol
perldoc perldsc

> --------------36D5D041ACE962DF28A31FA1
> Content-Type: text/html; charset=us-ascii
> Content-Transfer-Encoding: 7bit

*sigh* Please don't do this. Configure your browser to not output
HTML. HTML is for the web, Usenet is a plain text medium.

Martien
-- 
Martien Verbruggen                  | 
Webmaster www.tradingpost.com.au    | Make it idiot proof and someone will
Commercial Dynamics Pty. Ltd.       | make a better idiot.
NSW, Australia                      | 


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

Date: Fri, 13 Feb 1998 03:24:54 GMT
From: c28f62@world.std.com (Mark Kramer)
Subject: Re: How the Hell do I...?
Message-Id: <EoAs5I.JwE@world.std.com>

In article <6bv33m$asu$3@csnews.cs.colorado.edu>,
Tom Christiansen  <tchrist@mox.perl.com> wrote:
>This is my only goal.  Maybe I'll work out a standard response.
>But some people will always be offended when they're told
>that the answer they seek is on their own system.  

That is not where the offense is being taken. I think it is quite normal
for people to be offended when they read:

"Some toady sucking up to Bill and using a pathetic newsreader wrote:"




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

Date: Thu, 12 Feb 1998 19:52:18 -0800
From: "P. Schmitz" <schmitzp@no.spam.wxs.nl>
Subject: Location: returns empty document?
Message-Id: <34E3C371.D27D62FF@no.spam.wxs.nl>

Hi everyone,

Does anyone have any idea why the following perl script:

print "Location: www.yahoo.com\n\n";

doesn't redirect my browser to Yahoo!, but instead gives a 'Document
contains no data' message? The same thing in a C++ CGI-bin works
perfectly. Returning HTML works perfectly. But for some reason,
redirects like the above don't work from perl scripts...

I'm running perl 5 on Windows NT Server 4.0 with MS IIS. I sure hope you
know what's going on, because this has me baffled...

Pepijn.

--
  Remove the 'no.spam.' from my email adress if you want
  to reply via email!




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

Date: 13 Feb 1998 02:02:35 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: LWP.pm Question
Message-Id: <6c09jr$bke$1@comdyn.comdyn.com.au>

In article <34E34210.3CCDBAFF@worldnet.att.net>,
	Michael DeVivio <omc@worldnet.att.net> writes:

> I get a 500 error on the page. So I am confused since I added the
> content-type line and all.

You really should read the FAQ's on CGI for perl. They most likely
will give you an idea what you do wrong.

http://www.perl.com/CPAN/doc/FAQs/cgi/idiots-guide.html
http://www.perl.com/CPAN/doc/FAQs/cgi/perl-cgi-faq.html

> --------------653B592B6B9E2F2D30EE0EAE
> Content-Type: text/html; charset=us-ascii
> Content-Transfer-Encoding: 7bit

Please don't do this. Configure your 'news reader' to not output HTML.
HTML is for the web, and Usenet is a plain text medium.

Martien
-- 
Martien Verbruggen                  | 
Webmaster www.tradingpost.com.au    | We are born naked, wet and hungry. Then
Commercial Dynamics Pty. Ltd.       | things get worse.
NSW, Australia                      | 


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

Date: 12 Feb 1998 19:42:02 -0800
From: Russ Allbery <rra@stanford.edu>
Subject: Re: Moderated ng [Was: Re: So what about last summer's RFD?  Let's go moderated.]
Message-Id: <m3d8gs6uid.fsf@windlord.Stanford.EDU>

John Stanley <stanley@skyking.OCE.ORST.EDU> writes:

> Russ, you shouldn't need this clue, but here it is anyway: nothing is
> stopping the elite from discussing elite things right here in this
> newsgroup. The only problem that the elite might have is that scum using
> scurilous newsreaders might overhear them talking. Why should this be a
> problem? Is it a bad thing if the scum learn things?

Of course not.  And even with a moderated group, we're still talking about
Usenet.  The group is still going to be available for reading to anyone
who wants to.  And with the sorts of moderation that we were talking about
before, there really isn't much of a posting barrier either.

There are two reasons why I feel moderation is appropriate.  One is quasi
technical.  Tom's posted his killfile before, and I'm not sure how many
people are using it, but I'm using a version of it ported to Gnus.  I know
a number of other people are using it either verbatim or with minor
modifications.  There reaches a point when a large number of users of a
group are using roughly the same filter to read a group that it is more
efficient from the perspective of time and maintenance to create a new
group with that filter preapplied.

The other reason is social.  While I entirely agree with you that people
can learn to ignore or killfile things, the fact of the matter is that
people don't.  One can either invest a lot of time convincing them to do
so to little overall effect, or one can take a pragmatic approach.  I'm
not overly idealistic about Usenet; I'm not at all idealistic about this
newsgroup.  Whether it's "fair" or "right" or anything else, if keeping
some people out of a *new* newsgroup causes other people who are more
interesting posters to participate, that's a win for me.  clpm isn't going
anywhere for those people who don't want to deal with the moderated group.

-- 
#!/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: 13 Feb 1998 04:24:26 GMT
From: nvp@shore.net (Nathan V. Patwardhan)
Subject: Re: Moderated ng [Was: Re: So what about last summer's RFD?  Let's go moderated.]
Message-Id: <6c0htq$1ip@fridge.shore.net>

John Stanley (stanley@skyking.OCE.ORST.EDU) wrote:

: Russ, you shouldn't need this clue, but here it is anyway: nothing is
: stopping the elite from discussing elite things right here in this
: newsgroup. The only problem that the elite might have is that scum using

Yes, that's true.  The problem's with the noise.  There's no sense
in wading through hundreds of messages, many of which are completely
unnecessary.  And no, killfiling doesn't help.  The rigorous killfile
removes entities where there might be kernels of knowledge.  The lame
killfile only removes the few things that irritate you the most.  And
chances are that the most irritating people who you've killfiled will
keep reinventing themselves so you'll have to add them to your
killfile over and over.

I'd rather read fewer postings in a moderated group.  

The spamming business is another issue and I'm sick of discussing it.

--
Nathan V. Patwardhan


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

Date: Fri, 13 Feb 1998 03:18:55 GMT
From: dstack@netcom.com (David Stack)
Subject: Over comming ODBC's slowness in Perl
Message-Id: <34e6b8e4.48867416@news.supernews.com>

Is there any way to over come  the slowness of ODBC and still program
in perl?

 In visual fox pro, there is a neat API called FoxWeb that runs 
in memory just waiting for database calls.  Once a call is received,
all the processing is done in memory without temporary files being
written.  It processes the queries very fast with little overhead.
The only bad part about FoxWeb is that you have to program in FoxPro
:(

Is there anything like this for perl (preferably for NT/95).   I know
ActiveState has PerlEX in beta right now.  PerlEX does persisant
database connections which looks like it will help, but to my
knowledge, it still uses ODBC. 

Please offer suggestions or knowledge of API's that you may know of.

Thanks

Dave Stack



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

Date: 13 Feb 1998 04:07:25 GMT
From: lethr@dont.spam.the.net (lethr)
Subject: perl -e in Win95?
Message-Id: <887342929.544608@ins8.netins.net>

Does anyone know if the perl -e (not working) is being addressed/resolved?
Is there an alternate?  Here's what I get:

C:\perl.scripts>perl -e 'print "Hello\n;"'
Can't find string terminator "'" anywhere before EOF at -e line 1.

C:\perl.scripts>perl -v

	Win32 port Copyright (c) 1995-1996 Microsoft Corporation.
		All rights reserved.
	Developed by ActiveWare Internet Corp., http://www.ActiveWare.com

Perl for Win32 Build 315 - Built 09:33:08 Dec 31 1997

This is perl, version 5.003_07

Copyright 1987-1996, Larry Wall

	+ suidperl security patch
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5.0 source kit.

===========

I was pretty bummed when I found -e not working.
Thanks!

-- 
-
It's IMPOSSIBLE to dress       ,''(~x x. .
too provocatively.             ;  ,:~ ~x.x.x.
                 _..           _: `(  ~.~~.~x
           ,^^',/^^^^\       (xx-x-x.  .~ x ~x .
         /^ **,|^^**^^^\      /-##-#. \   .  .
       /^^)'  |^,'  \^^/ - _ /`\#/   \ \
     /^,)    |^^)    \^  ,~{;  /      '\ \
  ._/ !    ._/ !       `\#;;]/          `,\_._
          http://www.netins.net/showcase/leather
 My email address can easily be figured out using the
 info in the URL above, or you can visit the page.
 



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

Date: Thu, 12 Feb 1998 18:47:08 -0800
From: Denis Goddard <dgoddard@us.oracle.com>
Subject: Re: Perl and fast (big) file parsing
Message-Id: <34E3B42C.684B014A@us.oracle.com>

Amine wrote:
> 
>
>  i am trying to parse every character of a big file by doing like this
[code snipped]

Thank you for showing us the code. It really helps!

>  Note that i don't want to slurp it in memory this will take too much
>  memory .

Go ahead and slurp it in. If you run out of RAM, Perl will just use swapfile
space. Should not be a problem.

If, after you have actually tried just slurping into RAM, the machine crashes
or the job is insanely slow, you *could* slurp just (say) 10,000 lines at a
time into an array, process those, and continue.

Your program is slow because of the start-snd-stop, unbuffered IO.
It will be *MUCH* faster to suck as much into memory as you possibly can
(even if the memory manager does some disk swapping).

>  Thanks in advance
>  Amine

You're welcome.

-Denis


-- 
     __  __  _  __     __
~~~~(__)|-< /-\(__ |__(-_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Denis Goddard, Senior Member, Tech. Staff  |"I see the heads of men arise
email: dgoddard@us.oracle.com              |with hungry minds and open eyes!"
ourworld.compuserve.com/homepages/d_goddard| -Rush, from 2112: _The Oracle_


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

Date: Wed, 11 Feb 1998 14:53:57 -0800
From: Michael Schreiber <mschreiber@advancedsw.com>
Subject: Perl Syntax Coloring For Visual Studio????
Message-Id: <34E22C05.37367247@advancedsw.com>

Hello,

I am using Visual Studio as an editor and I am looking for someway to
get syntax coloring for PERL....

Does anyone know where to find a module that I can plug into Visual
Studio to get this.

Thanks

Michael Schreiber



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

Date: Thu, 12 Feb 1998 22:00:55 -0500
From: "Ted Thomas" <tthomas@netacc.net>
Subject: Perl use on IIS 4
Message-Id: <34e3b83e.0@news.netacc.net>

I have been unable to get the PWS version of IIS 4, running on a standalone
NT 4 workstation, to run Perl cgi scripts. They either result in the error
message  "%1 is not a valid Windows NT command" or, in the case of  SSI
scripts, they are ignored. I added the string value
"e:\ntreskit\perl\perl.exe %s %s" with key ".cgi" to the registry, but this
made no difference.

A note posted by David Feustel suggested configuring the mappings in the
default website properties. Unfortunately I can't find a "Home Directory"
tab on any website folders, just the usual General, Sharing and Security
tabs. No one else I've spoken to understands where to look either. I assume
we're all missing something.

The scripts will run from the DOS prompt and from O'Reilly's webserver (both
before and after the registry entry).

Any help in resolving my problem would be greatly appreciated.

Thanks,

Ted Thomas





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

Date: Fri, 13 Feb 1998 03:28:00 GMT
From: c28f62@world.std.com (Mark Kramer)
Subject: Re: RFC about "Matt's Script Archive"
Message-Id: <EoAsAq.LI7@world.std.com>

In article <34E33BB0.8A9ACBE6@mail.uca.edu>,
Cameron Dorey  <camerond@mail.uca.edu> wrote:
>Unfortunately, I am sure there are people out there trying to do just
>that. I know, because I was once one of them (for about a week). Coming

Can anyone reading this thread, where Matt has been referred to as
either evil or bad, wonder why people don't jump up and down with glee
at the thought of giving their code to this group?



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

Date: 13 Feb 1998 04:14:01 GMT
From: nvp@shore.net (Nathan V. Patwardhan)
Subject: Re: RFC about "Matt's Script Archive"
Message-Id: <6c0ha9$1ip@fridge.shore.net>

Mark Kramer (c28f62@world.std.com) wrote:

: Can anyone reading this thread, where Matt has been referred to as
: either evil or bad, wonder why people don't jump up and down with glee
: at the thought of giving their code to this group?

That's not the issue as far as I can understand.  The concerns /
complaints about Matt's stuff is that it's (1) old -- more than a year
in many cases, and (2) unnecessarily reinvents the wheel.  

Not to mention a number of curious goings-on in terms of security.

As for your point about people giving code to this group, well, most
people don't give anything.  They ask for it instead.  :-)

--
Nathan V. Patwardhan


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

Date: 13 Feb 1998 03:10:34 GMT
From: stanley@skyking.OCE.ORST.EDU (John Stanley)
Subject: Re: So what about last summer's RFD?  Let's go moderated.
Message-Id: <6c0dja$9ac$1@news.orst.edu>

In article <linberg-1202981313190001@projdirc.literacy.upenn.edu>,
Steve Linberg <linberg@literacy.upenn.edu> wrote:
>A quick deja-news search revealed that in article
><5nmj87$282$1@nadine.teleport.com>, deckers@man.ac.uk (A. Deckers) posted
>an RFD suggesting the creation of four new moderated Perl groups.  To the
>best of my knowledge, it died due to a general lack of tuits.

The proposal died because there was no consensus about mandating
"valid" spammable addresses for every posting. There wasn't a valid way
of defining "valid", but it was a requirement. The proponents decided
they didn't have time to discuss the proposal any more, and it expired.

If this same proposal comes up again, I will be just as opposed to any
mandate for spammable addresses as I was when it came up the first
time.  There is no reason this group needs to serve up verified
addresses to spammers on a silver platter. 

While it is a nice platitude to say that everyone can filter spam just
like Tom does, it is not true, and in some cases it costs people real
money. 

>Since I'm not the author, I don't want to repost it, but you can get it on
>deja news with this url:

I wouldn't matter if you repost it or not, it has expired and the
process needs to be restarted from scratch.

>I don't have the skills to be a moderator, but I'd be willing to help out
>however I can.  I don't want to see this resource die due to stupid (and
>preventable) lowest-common-denominator problems.

If it was going to die because there isn't a moderated group, it would
have died a long time ago. 



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

Date: Thu, 12 Feb 1998 22:01:51 -0600
From: johnnyzine@hotmail.com
Subject: Tell me your programming highs!
Message-Id: <887342074.1347551239@dejanews.com>

JOHNNYZINE is back, and seeking submissions for the next issue, "Higher
Source."

It's a specialty theme for computer programmers: I want to hear your
experiences of programming under the influence. Have you done this?
Regularly? Any stories? (No fiction.) Illustrations, photos and working
code (functions, programs, etc) welcome.

Send stuff to me, Johnny McKenna (I'm a girl, mind you), at
johnnyzine@hotmail.com.

Anonymous submissions okay, but would prefer names.

Deadline for submissions is March 31. "Higher Source" due out early
summer.

Please feel free to forward this message to any interested parties.

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet


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

Date: Fri, 13 Feb 1998 03:50:49 GMT
From: c28f62@world.std.com (Mark Kramer)
Subject: Re: The Young Man and the Beach
Message-Id: <EoAtCq.B7B@world.std.com>

A fine fantasy story, but as an allegory for life in this group it
misses the mark a little. Either the mirror is tarnished or not in the
FAQ. I'm sorry, Tom, but if you want to wallow in maudlin self-pity, I'll
help you get over it.

In article <6bvgf3$rfp$1@csnews.cs.colorado.edu>,
Tom Christiansen  <tchrist@mox.perl.com> wrote:
>Once upon a time, a sharp young man opens the window from his cottage and
>contemplates a morning stroll.  The day is clear and crisp, and the sea
>air comes wafting up to town, inviting dalliance instead of work.  So he
>chooses a route that will take him down to the beach.  It's been some time
>since he's visited the beach, but as a child, he and his friends used to
>cavort amongst waves and sand every day, delighting in the sea spume.
>He wonders whether his boyhood friends still frequent their old haunt.
>
>As he takes the path down to the water, he comes across a gypsy woman in
>dirty but colorful rags, accompanied by her similarly attired children.

Fine so far, but now we must insert:

"Instead of simply ignoring the woman and her children because he does not
wish to spend time with them, he decides to stop and talk to them."

>Crying out in plaintive supplication, she beseeches, "Young sir, I have
>no job from which I might garner wages to feed my two hungry children.
>You who are so fortunate and fine, can you not find it in your heart
>to spare some of what you so obviously have in abundance to help us
>who have nothing?  It will mean so little to you, but so much to us.
>Surely you can do something."
>
>Touched by her plight, the man astounds the desperate woman by doling
>out a few shillings.  She thanks him profusely, nearly tearfully, and
>she gives him a tiny, hand-crafted toy to eventually pass on to his
>own children.  He continues on his way, happy to have brought the woman
>tears of relief and joy.

If you think any of your flames brought tears of joy to the eyes of
those you flamed, you need more than a new mirror.

"The Young Man has grown tired of filthy beggars dirtying his beach,
and he grabs the gypsy woman by the shoulders and shakes her. 'Your
clothes are filthy and your children are noisy. You should dress like
me and your children should act like me. And I already wrote a book
with my answer to your plea for help.'"

>After no more than a score of yards further down the path, the young
>man is stopped by a barefoot boy, who makes a request similar to the

"After no more than a score of yards further down the path, the young
man decides not to ignore a barefoot boy sitting by the path. He stops
and allows the boy to speak to him."

>one just heard.  However, as he has no more shillings to spare, nor
>even pennies, the man breaks in two the loaf of bread he was carrying for
>his own repast, and he gives the bright-eyed youngster fully half of
>what he has.  The boy's eyes widen in surprise, and with a brief thank
>you and good day, the lad scampers off to gnaw upon the crust.

Oops. 

"The Young Man grasps the barefoot boy by the collar and shakes him.
'Your toenails need clipping, and your clothes are dirty. And if you
want to know if I will give you money, read the book I already wrote.'
The boy shakes his head in amazement at the display."

I could go on, but why? You won't see yourself in what I wrote because
you are too certain that you are helping people by insulting their
newsreaders. You are too sure that Usenet is a zero sum game. Every
"donation" you made in your fable left you poorer. In reality,
answering someone's question in this newsgroup does not mean you no
longer have that knowledge. But most of all, in every case you used in
your fable, you had the option to simply ignore the beggar without any
repercussions at all.



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

Date: 13 Feb 1998 02:09:00 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: training recommendation?
Message-Id: <6c09vs$bke$3@comdyn.comdyn.com.au>

In article <34E34173.3A0940A7@fpk.hp.com>,
	"Jess Arnold (BFR Contractor)" <jba@fpk.hp.com> writes:
> Can anyone recommend any good training courses in the New York area.  I
> am interested in learning PERL but I have no real programming background
> so I want to take a course to get me started.  If not, can anyone
> recommend good book(s) to get me started.  Thanks.

Start here with your search:

http://language.perl.com/info/training.html

(Next time, please first try www.perl.com and www.perl.org to see if
there's anything interesting there)

Martien

-- 
Martien Verbruggen                  | 
Webmaster www.tradingpost.com.au    | In a world without fences, who needs
Commercial Dynamics Pty. Ltd.       | Gates?
NSW, Australia                      | 


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

Date: 13 Feb 1998 03:10:30 GMT
From: Zenin <zenin@best.com>
Subject: Re: Why is Tom Christiansen so rude?
Message-Id: <887339694.122770@thrush.omix.com>

Amine <cybersky@generation.net_no_spam> wrote:
:  Think am going to shoot myself with a gun! 

	Welcome to Perl!  We hope you enjoy your stay!

	<grin>
-- 
-Zenin
 zenin@best.com


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

Date: Thu, 12 Feb 1998 22:53:53 -0500
From: Ed Finch <efinch@vais.net>
Subject: Re: Why is Tom Christiansen so rude?
Message-Id: <34E3C3D1.4407DBE7@vais.net>



David Rawle wrote:

> Well?

I've wondered that too. I thought we were enjoying some sort of
self-imposed banishment?

Ed




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

Date: 13 Feb 1998 02:05:16 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: WWW Page
Message-Id: <6c09os$bke$2@comdyn.comdyn.com.au>

In article <34E35124.5ABA193E@toiletland.nws.net>,
	ToiLeTGoD <toiletgod@toiletland.nws.net> writes:

> but I want it so that instead of exiting the script if the password is
> not correct, to reroute the request to a different page.  Perhaps
> badpassword.htm or something along them lines.  Anyone know how to
> perform this?  You can e-mail me or reply here!  Thanks alot.

Yes, the people on one of the comp.infosystems.www.* groups will tell
you how to do that. It's not a problem for perl.

>         ToiLeTGoD

Well, well.. I always wondered who/what made that flush thingy work.
Pretty cool name, dude. (not)

Martien
-- 
Martien Verbruggen                  | 
Webmaster www.tradingpost.com.au    | In a world without fences, who needs
Commercial Dynamics Pty. Ltd.       | Gates?
NSW, Australia                      | 


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

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 1884
**************************************

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