[13079] in Perl-Users-Digest
Perl-Users Digest, Issue: 489 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Aug 12 19:07:22 1999
Date: Thu, 12 Aug 1999 16:05:15 -0700 (PDT)
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 Aug 1999 Volume: 9 Number: 489
Today's topics:
Re: A good tutorial PERL (David H. Adler)
Re: Are Perl/Windows Sockets only for WIN NT? <bshow@my-deja.com>
Re: chop? Split? help? <revjack@radix.net>
different dir - scripts... <yoss@yossarin.co.uk>
Re: different dir - scripts... <belanov@starcity.tcnet.ru>
Help, please: use/require (not the (V)FAQ) <bklimov@mitre.org>
Re: Help, please: use/require (not the (V)FAQ) (Donovan Rebbechi)
Re: Help, please: use/require (not the (V)FAQ) (Mark-Jason Dominus)
Re: I guess this is a Misc question: Cgi-bin <newsgroup@bigwig.net>
Re: I guess this is a Misc question: Cgi-bin <newsgroup@bigwig.net>
Re: JavaScript recieving variables from Perl (Bart Van Hemelen)
Re: List Files in a directory and search (Donovan Rebbechi)
Re: LWP munging data <uri@sysarch.com>
Re: Member of an array (Donovan Rebbechi)
Re: Member of an array <jeffp@crusoe.net>
Re: Moving a Perlscript from NT to LINUX <schmickl@magnet.at>
Re: Moving a Perlscript from NT to LINUX <flavell@mail.cern.ch>
Re: New Book on Perl Tool Development <cassell@mail.cor.epa.gov>
Re: New Book on Perl Tool Development <tchrist@mox.perl.com>
Re: Perl novice needs quick help (Mark-Jason Dominus)
Re: Perl vs. ASP: which is better? (Donovan Rebbechi)
Re: Perl vs. ASP: which is better? (Donovan Rebbechi)
Re: PGP and Perl nealawp@my-deja.com
Re: Quick Question--OS Name <cassell@mail.cor.epa.gov>
Re: Search algorithm in Perl (Benjamin Franz)
Digest Administrivia (Last modified: 1 Jul 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 12 Aug 1999 22:22:33 GMT
From: dha@panix7.panix.com (David H. Adler)
Subject: Re: A good tutorial PERL
Message-Id: <slrn7r6i99.jqd.dha@panix7.panix.com>
In article <934445163.24122@www.remarq.com>, Arkady Zilberberg wrote:
>Speaking only for myself:
>I found Sam's "Teach yourself Perl 5 in 21 day" very
>helpful. When I started reading it I already had some
>good experience with awk but not a slightest idea about
>Perl. In a mere 2 weeks or so I was ready to write some
>quite complicated programs and able to understand most
>of other people's code. Creating and using packages is
>still beyond my ability (well, I have no need for it yet)
>but for starters this book is very good.
While I'm glad that you found the book helpful, I feel constrained to
point out that its reputation in the perl community, while not
terrible, is certainly not the best. I suggest that someone looking
for perl books check out the reviews at
<http://www.perl.com/pub/language/critiques/index.html>.
A more extensive review of this particular book is pointed to from
there. That url is <http://xenu.phys.uit.no/~tom/TYP21D.html>.
HTH,
dha
--
David H. Adler - <dha@panix.com> - http://www.panix.com/~dha/
Free Randal Schwartz! <http://www.rahul.net/jeffrey/ovs/>
(ok, maybe not free, but competitively priced!)
------------------------------
Date: Thu, 12 Aug 1999 21:44:37 GMT
From: Bob Showalter <bshow@my-deja.com>
Subject: Re: Are Perl/Windows Sockets only for WIN NT?
Message-Id: <7ovf83$p4o$1@nnrp1.deja.com>
I have succesfully written socket applications with the Win95 version.
There are some limitations, described in the accompanying documentation
(e.g. no Unix domain sockets, etc.)
> Can one use perl to write sockets for the Win95 version of Perl???
> Or does it only work for NT Win32???
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: 12 Aug 1999 21:31:39 GMT
From: revjack <revjack@radix.net>
Subject: Re: chop? Split? help?
Message-Id: <7ovefr$rh0$1@news1.Radix.Net>
Keywords: Hexapodia as the key insight
Previously, I wrote:
:Our new friend QuesEx had proven to be very responsive to several
:yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda
Just shoot me.
------------------------------
Date: Thu, 12 Aug 1999 22:17:03 +0100
From: "Yossarin" <yoss@yossarin.co.uk>
Subject: different dir - scripts...
Message-Id: <WSGs3.3638$Yu4.132212@news2-hme0.mcmail.com>
hello,
can anyone tell me why none of my scripts are working except from the
directory above the cgi-bin.
For example, if in the root a file calls <IMG
SRC="cgi-bin/Counter.exe?blah,blah,blah">
works fine.
If I then try and call it from a directory in the root that doesn't have its
own cgi bin using:
<IMG SRC="../cgi-bin/Counter.exe?blah,blah,blah">
Any help would be appreciated,
Thanks
Yossarin
------------------------------
Date: Fri, 13 Aug 1999 02:00:40 +0400
From: "Mihail Belanov" <belanov@starcity.tcnet.ru>
Subject: Re: different dir - scripts...
Message-Id: <37b343b9.0@flynt.rusmedia.net>
>can anyone tell me why none of my scripts are working except from the
>directory above the cgi-bin.
>
>For example, if in the root a file calls <IMG
>SRC="cgi-bin/Counter.exe?blah,blah,blah">
>
>works fine.
>
>If I then try and call it from a directory in the root that doesn't have
its
>own cgi bin using:
><IMG SRC="../cgi-bin/Counter.exe?blah,blah,blah">
This is not Perl question but web server question. Some web servers
allows to assign additional cgi-bin directories but it is the server-related
procedure. Therefore search the solution in your server documentation.
--- Regards --- Mihail Belanov --- belanov@starcity.tcnet.ru ---
------------------------------
Date: Thu, 12 Aug 1999 17:41:51 -0400
From: Boris Klimovitsky <bklimov@mitre.org>
Subject: Help, please: use/require (not the (V)FAQ)
Message-Id: <37B33F93.15E3B961@mitre.org>
OK, I'm afraid I don't know enough about this, but what I've read in
archives and books doesn't help.
===== test (mode: 755) =========
#!/usr/local/bin/perl -w
use strict;
require "foo"; #I assume this allows the file to be named foo OR foo.pm,
#since the file is being found, just claiming that it's not returning a
true value
my $bar = &foo;
print $bar;
===============================
===== foo (mode: 755) ==========
sub foo {
my $var = "Hello, World!\n";
1;
}
===============================
foo did not return a true value at test line 4
checked perldiag, perlfunc require (and use). Nothing.
Checked @INC. The files ARE in the same directory (I'd be getting
"Can't locate %s in @INC" if it wasn't in @INC, anyway). Tried use lib
$ENV{'PWD'}; (just in case). Nada.
Checked Llama: nothing. Checked the Ram book (the cookbook), chapter 12
had some suggestions for making foo part of a package (tried that... no
success). Checked the camel (1st edition... haven't gotten a second
yet). Nothing. At least, nothing that I tried which helped.
perl -v : 5.005_02.
Tried putting the sub at the end of test (and # the require). Worked
fine. Well, returned a 1, anyway, and when I deleted that, returned
Hello, World!
Anyone know what I'm doing wrong? I'm sure this is easy... just not for
me. What else should I have tried?
Thanks.
Boris Klimovitsky.
bklimov@mitre.org
=:= Disclaimer =:=
My opinions are my own, and do not represent the thoughts or opinions
of my employer(s).
------------------------------
Date: 12 Aug 1999 18:10:25 -0400
From: elflord@news.newsguy.com (Donovan Rebbechi)
Subject: Re: Help, please: use/require (not the (V)FAQ)
Message-Id: <slrn7r6hig.npn.elflord@panix3.panix.com>
On Thu, 12 Aug 1999 17:41:51 -0400, Boris Klimovitsky wrote:
>#!/usr/local/bin/perl -w
>use strict;
>
>require "foo";
> #since the file is being found, just claiming that it's not returning a
>true value
It's not. Hint: sub foo {} returns true, but the file doesn't. You
need to put
1;
outside the subroutine, at the end of the file. Like this:
>===== foo (mode: 755) ==========
sub foo {
my $var = "Hello, World!\n";
}
1;
------------------------------
Date: Thu, 12 Aug 1999 22:14:16 GMT
From: mjd@op.net (Mark-Jason Dominus)
Subject: Re: Help, please: use/require (not the (V)FAQ)
Message-Id: <7ovgu6$fkt$1@monet.op.net>
In article <37B33F93.15E3B961@mitre.org>,
Boris Klimovitsky <bklimov@mitre.org> wrote:
> foo did not return a true value at test line 4
>
> checked perldiag, perlfunc require (and use). Nothing.
perldiag:
%s did not return a true value
(F) A required (or used) file must return a true value to
indicate that it compiled correctly and ran its
initialization code correctly. It's traditional to end
such a file with a "1;", though any true value would do.
See the require entry in the perlfunc manpage.
perlfunc require:
The file must return TRUE as the last statement to
indicate successful execution of any initialization
code, so it's customary to end such a file with "1;"
unless you're sure it'll return TRUE otherwise. But
it's better just to put the "1;", in case you add more
statements.
Wow.
> Anyone know what I'm doing wrong? I'm sure this is easy... just not for
>me. What else should I have tried?
I am completely at a loss for suggestions.
------------------------------
Date: Thu, 12 Aug 1999 22:47:07 +0100
From: "Ben Quick" <newsgroup@bigwig.net>
Subject: Re: I guess this is a Misc question: Cgi-bin
Message-Id: <37b355fe.0@news2.cluster1.telinco.net>
J. Moreno wrote in message
<1dwdoue.12dabb2lpfuchN@roxboro0-0014.dyn.interpath.net>...
>Ben Quick <newsgroup@bigwig.net> wrote:
>
>> I R A Darth Aggie wrote in message ...
>>
>> >Why should any given person on this group be expected to know the answer
>> >to a unix file permissions question?
>>
>> Because any scripts would have to be given permissioons, to be fair
>
>I run most of my scripts under MacOS 8.6. For some reason I don't
>*have* to give them unix file permissions, and am rather weak on unix
>file permissions in general.
>
>I wonder why this might be....
Fair point. I was wrong. I can admit that. It was my understand that most
(or a big percentage) of servers ran unix, hence the need for chmodding. Now
phur-lease could you drop it
>--
>John Moreno
------------------------------
Date: Thu, 12 Aug 1999 22:55:03 +0100
From: "Ben Quick" <newsgroup@bigwig.net>
Subject: Re: I guess this is a Misc question: Cgi-bin
Message-Id: <37b355ff.0@news2.cluster1.telinco.net>
>> Fair points, but wouldn't it have been easier if I was given polite
>> responses like
>> "I'm sorry, I don't know the answer. But ou're in the wrong group really,
>> try asking in...."
>> or
>> "The answer is.... but really this is the wrong group. In future for this
>> type of question try asking in...."
>
>Several reasons listed in no particular order.
>
>Asking off topic questions in the first place is frequently considered
>rude -- the faqs and other documents are quite clear on what is
>appropriate.
I read the faq, it didn't (to my recolection) say do not ask about file
permissions
>This and other off topic questions have been asked before and people are
>tired of dealing with them and so are easily annoyed (which goes back to
>the first reason because asking the question in the first place is
>considered rude).
Ok, so off topic posts may be frequent. But as I've already said in another
post, I am in a group that always get's the same old questions. We answer
them *polietly* which is the key. It's not hard to be polite
>Lots of people feel that such answers encourage people to post off topic
>questions here "well, I got an answer last time", "Joe User got a good
>answer about the best place to buy sports equipment, someone told him
>where he could get soccer balls for 80% off, and Joe said he bought 5, I
>think I'll ask about how to rebuild my carburetor".
As I said, if I was polietly pointed in the right direction (newsgroup) I
would've said thankyou and sorry and then been off
>Here's a general usenet hint -- when you say something in any new (to
>you) newsgroup and have one or more people point out that your post is
>off topic or otherwise inappropriate the CORRECT response is to
>apologize -- you may if you wish ask for direction to a more appropriate
>group, but you don't argue about it.
I never argued that my post was *on* topic, I just pointed out that saomeon
should know the answer. If no one did, all that had to be done was politely
point me to the right group
>If someone says you should have included a joke, then fine you should
>have included a joke, quoting at the bottom instead of at the top (or
>even vice versa), including or not including a Cc -- it doesn't matter,
>when a regular tells you that the convention is to do X, then you do X
>or go elsewhere. You don't say that Y is better or that everyone should
>know the answer and it wouldn't hurt them to help you -- you say
>"sorry" and then try to get along.
I have never said I am right and you are wrong. I accept that I am fairly
new to perl and most people here know more than me. So, I'm sorry I don't
see your point there
>(This is one of the things that puzzle me about this phenomena in
>general and not just Ben's response in particular -- is the world filled
>with people that can't admit they were wrong and then get on with life?
Ahem, I have admitted that I was wrong on several occasions. All I ask is
for politness, of which most post's weren't.
>I don't know how many times I've seen someone point out that the quoting
>was backassword or the message was off topic and the person respond with
>the quip "Are you the moderator? If not then buzz off and mind your own
>business" [a recent variation was "Do you own the NG??"]).
Err, don't know what you're getting at.
I admit I said that you all came across as high and mighty and everyone is
below you. I stand by that.
Now, please could you let it drop.
>--
>John Moreno
------------------------------
Date: Thu, 12 Aug 1999 20:47:55 GMT
From: tenthousand@geocities.NOSPAMMMMMM.com (Bart Van Hemelen)
Subject: Re: JavaScript recieving variables from Perl
Message-Id: <37bcfc2e.2527233@news.planetinternet.be>
On Wed, 11 Aug 1999 14:27:50 -0500, "David Yang" <david@math.edu> said
in comp.lang.javascript about "JavaScript recieving variables from
Perl":
>
>how do I have JavaScript read variables from a Perl file. For example, I
>have a database of variables, how can I load those into JavaScript? Load
>them without rewriting the page would be the best but if that's not possible
>that's ok....
think:
- js = client side
- perl script = server side
inbetween them: gaping hole.
solution: have perl write your js vars while generating the page.
Bart Van Hemelen
--
http://www.e-business-developer.com
bvh@e-business-developer.com
------------------------------
Date: 12 Aug 1999 17:28:15 -0400
From: elflord@news.newsguy.com (Donovan Rebbechi)
Subject: Re: List Files in a directory and search
Message-Id: <slrn7r6f3f.gm0.elflord@panix3.panix.com>
On Thu, 12 Aug 1999 18:44:59 GMT, nerilius@my-deja.com wrote:
>I'm trying to write a program that searches a directory for a file. If
>that file exists it returns true.
perldoc File::Find
--
Donovan
------------------------------
Date: 12 Aug 1999 17:09:25 -0400
From: Uri Guttman <uri@sysarch.com>
Subject: Re: LWP munging data
Message-Id: <x7lnbg670a.fsf@home.sysarch.com>
>>>>> "jp" == jerrad pierce <jerrad@networkengines.com> writes:
jp> Thanks! Not intuitive. UN*X has text and bin files, and you don't
jp> have to worry about that crap. Yet windows w/o bin and txt files
jp> you do.
???? unix has files, period. no distinction. winblows has the
distinction and so you have to know how to read the file. c and perl
expect only a single \n after a line so winblows has to have a text mode
handle that. that implies the need for a binmode for the opposite. and
text is the default so you have to use binmode if you want image copies
of your fetch.
why am i posting about a winblows issue? i have to go wash my hands. i
feel very dirty now.
uri
--
Uri Guttman ----------------- SYStems ARCHitecture and Software Engineering
uri@sysarch.com --------------------------- Perl, Internet, UNIX Consulting
Have Perl, Will Travel ----------------------------- http://www.sysarch.com
The Best Search Engine on the Net ------------- http://www.northernlight.com
"F**king Windows 98", said the general in South Park before shooting Bill.
------------------------------
Date: 12 Aug 1999 18:48:28 -0400
From: elflord@news.newsguy.com (Donovan Rebbechi)
Subject: Re: Member of an array
Message-Id: <slrn7r6jpr.npn.elflord@panix3.panix.com>
On 12 Aug 1999 18:18:45 GMT, Phil Goetz wrote:
>I've gone through my Perl manual without finding a built-in
>method to ask whether a variable is a member of an array.
>E.g., I want to know if "fred" is in the array
foreach my $item(@array) { return 1 if $item eq $fred; }
return 0;
------------------------------
Date: Thu, 12 Aug 1999 19:04:21 -0400
From: Jeff Pinyan <jeffp@crusoe.net>
Subject: Re: Member of an array
Message-Id: <Pine.GSO.4.10.9908121900340.22685-100000@crusoe.crusoe.net>
[posted & mailed]
On Aug 12, Donovan Rebbechi blah blah blah:
> On 12 Aug 1999 18:18:45 GMT, Phil Goetz wrote:
> >I've gone through my Perl manual without finding a built-in
> >method to ask whether a variable is a member of an array.
> >E.g., I want to know if "fred" is in the array
>
> foreach my $item(@array) { return 1 if $item eq $fred; }
> return 0;
That is slow and silly. Smarter:
$has_fred = contains("fred",@list);
sub contains {
my $word = shift;
my %hash;
@hash{@_} = ();
return exists $hash{$word};
}
That's almost exactly from the FAQ. Check perlfaq4 for smart(er) answers.
--
jeff pinyan japhy@pobox.com japhy+perl@pobox.com japhy+crap@pobox.com
japhy's little hole in the (fire) wall: http://www.pobox.com/~japhy/
japhy's perl supposit^Wrepository: http://www.pobox.com/~japhy/perl/
The "CRAP" Project: http://www.pobox.com/~japhy/perl/crap/
CPAN ID: PINYAN http://www.perl.com/CPAN/authors/id/P/PI/PINYAN/
------------------------------
Date: Thu, 12 Aug 1999 23:15:39 +0200
From: Thomas Schmickl <schmickl@magnet.at>
Subject: Re: Moving a Perlscript from NT to LINUX
Message-Id: <37B3397B.4F2D60C1@magnet.at>
Kenneth Bandes schrieb:
> The problem with NT files is the carriage returns (\015). Unix wants only
> line-feeds. So just get rid of the carriage returns, which Martien's
> one-liner does (it performs the substitution in a loop on every line and
> updates the input files in place).
>
I know this, but this is correctly done by "recode ibmpc:latin1 *.pl", but
what is not correctly transformed are other special characters like
the (i don't know if you can see them right now) that are
used in german.
> In the future, if you move the text files (not zipped) from NT to Unix using
> ftp in ASCII mode (I), you'll be fine - it'll correct for that stuff.
This I figured out too, but I cannot do this on one mashine that has a dual-boot between NT and Linux.
So I thought, maybe there is a commonly used tool that other perl-programmers use too.
Thank you, thomas.
------------------------------
Date: Fri, 13 Aug 1999 00:03:22 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: Moving a Perlscript from NT to LINUX
Message-Id: <Pine.HPP.3.95a.990812235552.8008D-100000@hpplus03.cern.ch>
On Thu, 12 Aug 1999, Thomas Schmickl wrote:
> I know this, but this is correctly done by "recode ibmpc:latin1 *.pl", but
> what is not correctly transformed are other special characters like
> the (i don't know if you can see them right now) that are
> used in german.
Well, the reason it's wrong is that they _are_ converted (as if from DOS
code to unix) when in fact they should not be (since they started in
Windows code, where the iso-8859-1 characters are already in their right
places).
> So I thought, maybe there is a commonly used tool that other
> perl-programmers use too.
There's more than one way ;-)
I use PFE (programmer's file editor) on Win32 platforms; it can
save files in "unix" format. In fact, courtesy of Samba, I can
save the results directly to unix. YMMV.
gruesse
------------------------------
Date: Thu, 12 Aug 1999 14:14:13 -0700
From: David Cassell <cassell@mail.cor.epa.gov>
Subject: Re: New Book on Perl Tool Development
Message-Id: <37B33925.CDFAF66F@mail.cor.epa.gov>
Michel Dalle wrote:
>
> In article <rr45e6eekrl94@corp.supernews.com>, "Edward B Toupin" <etoupin@toupin.com> wrote:
> >We are considering publishing a new book about Perl tool development and are
[snip]
> How are we to understand "Perl Tool Development" ?
>
> - Using tools for the development of Perl scripts
> - Development of tools with Perl
> - Tools for the development of Perl
> - Perl tools for the development of whatever
> - Development with the 'Perl tool'
> - Development of the 'Perl tool'
I think I'm glad you stopped right there. :-)
Aren't natural languages a pain? They're so sloppy, with
syntax rules which only apply 90% of the time, and all that.
Paul Ziff, in his writings on the philosophy of language,
used as an example the street on which he grew up:
Old Eagle School Road
Exercise for the reader: parse as above. :-)
David
--
David Cassell, OAO cassell@mail.cor.epa.gov
Senior computing specialist
mathematical statistician
------------------------------
Date: 12 Aug 1999 15:16:15 -0700
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: New Book on Perl Tool Development
Message-Id: <37b3399f@cs.colorado.edu>
[courtesy cc of this posting mailed to cited author]
In comp.lang.perl.misc,
David Cassell <cassell@mail.cor.epa.gov> writes:
:Paul Ziff, in his writings on the philosophy of language,
:used as an example the street on which he grew up:
: Old Eagle School Road
:Exercise for the reader: parse as above. :-)
I've often been fond of
The dog is ready to eat.
--tom
--
"... my dear old friend. I wish to God there were more automata in the world
like you." - Charles Darwin to T H Huxley, letter, 1882.
------------------------------
Date: Thu, 12 Aug 1999 21:49:03 GMT
From: mjd@op.net (Mark-Jason Dominus)
Subject: Re: Perl novice needs quick help
Message-Id: <7ovfe8$fdf$1@monet.op.net>
[Mailed and posted]
In article <7ovbco$bih$1@info2.uah.edu>, Greg Bacon <gbacon@cs.uah.edu> wrote:
>In article <7ovaaa$lgg$1@nnrp1.deja.com>,
>I searched the CPAN modules list[*] for template and found these:
I have a list somewhere of at least 25 or 26 different templating
systems, most of which are pretty useful for solving some sorts of
problems and not so useful for others. Eventually I'm going to look
at all of them and write a guide to selecting the appropriate one.
In the meantime, two good choices are usually Text::Template and
Text::MetaText. Both would probably work well for this application.
------------------------------
Date: 12 Aug 1999 17:20:20 -0400
From: elflord@news.newsguy.com (Donovan Rebbechi)
Subject: Re: Perl vs. ASP: which is better?
Message-Id: <slrn7r6ekj.gm0.elflord@panix3.panix.com>
On Thu, 12 Aug 1999 16:04:55 -0400, jerrad pierce wrote:
>I'll assume you mean ASP w/VBscript vs Perl CGI.
You can also use perl via apache's mod_perl which is more efficient than CGI
( or so I've heard )
--
Donovan
------------------------------
Date: 12 Aug 1999 17:26:19 -0400
From: elflord@news.newsguy.com (Donovan Rebbechi)
Subject: Re: Perl vs. ASP: which is better?
Message-Id: <slrn7r6evr.gm0.elflord@panix3.panix.com>
On 12 Aug 1999 19:25:19 GMT, Kent Delcastillo wrote:
>I'm curious to know what everyone thinks. I expect a Perl bias since I'm
>in the PERL newsgroup, but I'm interested to know why. I've learned a lot
>of PERL and am now learning ASP, interested to hear peoples thoughts...
Perl is better because it's portable and doesn't lock you into {gag}
IIS.
OTOH, assuming you are stuck with IIS, ASP pages will probably
give you better performance under load than perl/CGI on NT ( which is
dog slow ). If your webserver is not heavily loaded, then your application
is probably not performance critical, and it won't matter either
way.
Note that if you are using a full featured webserver such as Apache,
there are several options besides Perl, including mod_include,
mod_php, and mod_perl , all of which are good for dynamic html ( and
some of which are probably faster than CGI ). Perl/CGI is often an
overkill for problems that can be solved more elegantly with
mod_include.
--
Donovan
------------------------------
Date: Thu, 12 Aug 1999 22:44:50 GMT
From: nealawp@my-deja.com
Subject: Re: PGP and Perl
Message-Id: <7ovip0$rjd$1@nnrp1.deja.com>
Sorry this isn't a direct answer to your question. I simply want to jump
on the PGP/PERL knowledge train. I gratefully used this bit of code##
open (PGP, "|$pgpProgram -eaf >>$pgptmp") || die "Can't open
$pgpProgram!, $!\n";
that someone posted to pipe stuff through pgp into an encrypted file.
However, I'm running in two problems:
1) I don't know how to pass the recipient as a param. So it prompts me
for the UID of the recipient when executing the script.
2)Since I'm dumping it into a text file I need to find a way to attach
it (other than MIME::lite).
I'd greatly appreciate any words of wisdom that Perlers can provide.
In article <3gAQ1PAXU1k3EwQD@wavy.org>,
David Stringer <me@wavy.org> wrote:
> I am trying to use a script to manipulate PGP data. I have installed
PGP
> 2.6.3i , PGP:Pipe and PGP:Sign. Unfortunately all the docs I can find
> for PGP:Pipe and PGP:Sign do not give instructions how they intend the
> code to be used.
> Could anyone be gracious enough point me to some good docs or give me
a
> basic rundown of the available methods.
> Any other advice relevant to using PGP and Perl together could also be
> most helpful.
> Thanks.
> --
> David Stringer
>
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: Thu, 12 Aug 1999 14:26:08 -0700
From: David Cassell <cassell@mail.cor.epa.gov>
Subject: Re: Quick Question--OS Name
Message-Id: <37B33BF0.D1D2E47@mail.cor.epa.gov>
Anno Siegel wrote:
>
> Mahesh Swaminathan <mahesh@zedak.com> wrote in comp.lang.perl.misc:
> >I am looking for a Perl function which would let me find which operating
> >system i am on. I am looking for a Perl equivalent of Java's
> >System.getProperty("osname").
>
> $osname = $^O;
>
> or
>
> use English;
> $osname = $OSNAME;
Yes. But note that this alone os not sufficient to make
all determinations. win95, win98, and winNT all return:
C:\>perl -e "print $^O;"
MSWin32
if you're using ActiveState Perl. So you might also need
to check the sub IsWinNT .
HTH,
David
--
David Cassell, OAO cassell@mail.cor.epa.gov
Senior computing specialist
mathematical statistician
------------------------------
Date: Thu, 12 Aug 1999 22:36:37 GMT
From: snowhare@long-lake.nihongo.org (Benjamin Franz)
Subject: Re: Search algorithm in Perl
Message-Id: <V%Hs3.201$DI3.19834@typhoon01.swbell.net>
In article <7oarns$dng$1@nnrp1.deja.com>, Dheera <dheera@my-deja.com> wrote:
>Hi,
> I'm trying to build a search-engine (in Perl) which can search about
>1 million database records in less than 1 second (if possible) on my hz
>Pentium II.
> I can afford to use upto 8 GB for this size of database - and I have
>64 MB of RAM available.
>
>Could someone help me with what algorithms I could program, or what
>freeware search engines are available to meet these?
>
>I am pretty sure it can be done - even if it takes a lot of disk space
>it is okay.
>
>I have tried using a gigantic hash table with truncation for key
>selection, but it is quite slow... and so is ODBC.
>
Look at the 'Search::InvertedIndex' module on CPAN <URL:http://www.cpan.org/>.
It is designed for precisely this kind of problem.
--
Benjamin Franz
------------------------------
Date: 1 Jul 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 1 Jul 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.
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" from
almanac@ruby.oce.orst.edu. The real FAQ, as it appeared last in the
newsgroup, can be retrieved with the request "send perl-users FAQ" from
almanac@ruby.oce.orst.edu. 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" from
almanac@ruby.oce.orst.edu.
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 489
*************************************