[15960] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 3372 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Jun 15 14:05:50 2000

Date: Thu, 15 Jun 2000 11:05:32 -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: <961092330-v9-i3372@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Thu, 15 Jun 2000     Volume: 9 Number: 3372

Today's topics:
    Re: "chomp"ing  the date <aqumsieh@hyperchip.com>
    Re: "chomp"ing  the date (Bart Lateur)
    Re: "chomp"ing  the date (Jerome O'Neil)
    Re: "chomp"ing the date <red_orc@my-deja.com>
    Re: "Fuzzy" matching <iltzu@sci.invalid>
    Re: [Q] Perl implemented in Java? (Randal L. Schwartz)
    Re: [Q] Perl implemented in Java? <lsloan@umich.edu>
    Re: [Q] Perl implemented in Java? (Tom Poindexter)
    Re: [Q] Perl implemented in Java? (Randal L. Schwartz)
    Re: [REGEXP] Matching list of comma-separated ID's <lr@hpl.hp.com>
    Re: A Computer Programmers Profile (Abigail)
    Re: accessing file with samba nobull@mail.com
    Re: Average Salary? <care227@attglobal.net>
    Re: Binary Encoding Data <rootbeer@redcat.com>
    Re: Bot for this group to auto-answer queries? (John Stanley)
    Re: Bot for this group to auto-answer queries? <iltzu@sci.invalid>
    Re: Bot for this group to auto-answer queries? (Brandon Metcalf)
    Re: Bot for this group to auto-answer queries? (Brandon Metcalf)
    Re: Bot for this group to auto-answer queries? <rootbeer@redcat.com>
    Re: Bot for this group to auto-answer queries? (Abigail)
    Re: Bot for this group to auto-answer queries? <iltzu@sci.invalid>
        Can Perl use SSL or HTTPS protocol? robb4444@my-deja.com
    Re: Can Perl use SSL or HTTPS protocol? <rootbeer@redcat.com>
        curious databse of webhosting like geocities <danielxx@bart.nl>
    Re: curious databse of webhosting like geocities <sariq@texas.net>
    Re: curious databse of webhosting like geocities <jeff@vpservices.com>
    Re: default shell for 'backtick' commands <mike.solomon@eps.ltd.uk>
    Re: default shell for 'backtick' commands (M.J.T. Guy)
    Re: default shell for 'backtick' commands <ts@relson.net>
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

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

Date: Thu, 15 Jun 2000 15:16:08 GMT
From: Ala Qumsieh <aqumsieh@hyperchip.com>
Subject: Re: "chomp"ing  the date
Message-Id: <7aitvbx9dz.fsf@merlin.hyperchip.com>


bart.lateur@skynet.be (Bart Lateur) writes:

>                    chomp() returns the success of it's action.

Err, not exactly. chomp() returns the total number of characters removed
from all its arguments.

--Ala


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

Date: Thu, 15 Jun 2000 16:02:00 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: "chomp"ing  the date
Message-Id: <3948fd70.28046902@news.skynet.be>

Ala Qumsieh wrote:

>bart.lateur@skynet.be (Bart Lateur) writes:
>
>>                    chomp() returns the success of it's action.
>
>Err, not exactly. chomp() returns the total number of characters removed
>from all its arguments.

Er... you're right. I thought it returned the number of lines it
successfully processed (when passed a list).

But, if no characters are removed, it wasn't very succesful, was it? So
it DOES return *success*, but even more than just that.

-- 
	Bart.


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

Date: Thu, 15 Jun 2000 16:14:55 GMT
From: jerome@activeindexing.com (Jerome O'Neil)
Subject: Re: "chomp"ing  the date
Message-Id: <3i725.32$lY4.3125@news.uswest.net>

bart.lateur@skynet.be (Bart Lateur) elucidates:

> But, if no characters are removed, it wasn't very succesful, was it? 

Yes.  If no characaters were removed, there were none to be removed, so 
it was still successfull.

> So it DOES return *success*, but even more than just that.

It returns a value indicating the number of characters removed.

This might evaluate to true or false in a boolean sense, but
the *success* of the operation can only be determined by the
caller.



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

Date: Thu, 15 Jun 2000 16:47:02 GMT
From: Rodney Engdahl <red_orc@my-deja.com>
Subject: Re: "chomp"ing the date
Message-Id: <8ib19v$2ui$1@nnrp1.deja.com>

In article <3948fd70.28046902@news.skynet.be>,
  bart.lateur@skynet.be (Bart Lateur) wrote:

> But, if no characters are removed, it wasn't very succesful, was it?
> So it DOES return *success*, but even more than just that.
>
> --
>
I know the following begs the question . . .

sorta depends on how you define success.  if you define success it a
resulting value sans ANY trailing newlines, then a result of 0 is
success if it started out with no trailing newlines.

similarly, a result of 1 (when not in paragraph mode) with a string that
had 3 trailing newlines is not success, as it leaves two trailing
newlines.


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


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

Date: 15 Jun 2000 17:12:38 GMT
From: Ilmari Karonen <iltzu@sci.invalid>
Subject: Re: "Fuzzy" matching
Message-Id: <961088513.28149@itz.pp.sci.fi>

In article <8iaq30$4bm$1@plutonium.compulink.co.uk>, Guy Fraser wrote:
>to do this :o(  I can't use the String::Approx because I don't know what OS
>the finished script will need to run on (hence can't guarantee that we can
>compile the C asset).

If you can't use String::Approx, you should be able to get the same
information from Algorithm::Diff, which is pure Perl.  From a quick
reading of the String::Approx docs, it appears that the "number of
edits" between two strings equals the length of the longer string
minus the length of the LCS.

I'd like to note that I've found a different metric to be useful -
namely a "match rate" defined as the square of the length of the LCS
divided by the lengths of the two strings.  YMMV.

Reading my earlier posts here about Algorithm::Diff may be helpful.

-- 
Ilmari Karonen - http://www.sci.fi/~iltzu/
Please ignore Godzilla and its pseudonyms - do not feed the troll.



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

Date: 15 Jun 2000 09:46:40 -0700
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: Re: [Q] Perl implemented in Java?
Message-Id: <m166ra28pb.fsf@halfdome.holdit.com>

>>>>> "Bart" == Bart Lateur <bart.lateur@skynet.be> writes:

Bart> Andre-John Mas wrote:
>> Could anyone tell me whether a version Perl has been implemented
>> in Java. The reason being, that I am looking for a scripting
>> language that can run on machines using a java only system.

Bart> No as is, for the reasons Tom Phoenix has given. But I think Larry Wall
Bart> is being paid (by O'Reilly?) to write a Perl-to-Java-bytecode compiler,
Bart> so you could RUN your Perl scripts on a Jave only machine.

There are two separate things going on here.

Larry wrote JPL (Java Perl Lingo) a year or two ago.  That was
originally an O'Reilly commercial product, since made open-source and
included with the latest Perl dists.

Mark Ethan Trostler is working on Java.pm... from the README:

    Welcome to the Frightening World of Java/Perl interoperability!

    There are two parts to this:
    1. The 'Backend' - which is contained in 'Java.jar'.  The backend must be
    running for the 'Frontend' (part #2) to work.  Run 'install_java_server.pl'
    to get this part going.  The 'main' Java class is called 'JavaServer' so
    you end up running the thing as 'java -classpath <classpath> JavaServer'
    JavaServer listens on a port for incoming connexions from Frontends - you
    can alter the default port of 2000 by specifying it on the command line link:
    java -classpath <classpath> JavaServer 8000
    Will start the server listening on port 8000.  You would then need to tell
    the Java Perl module to connect to port 8000 instead of the default like:
    my $java = new Java(port => 8000);
    More on this below.
    2. The 'Frontend' - which is the Perl module 'Java.pm' which you install
    as any other Perl module.

Java.pm is in the CPAN.

A Perl-to-JVM compiler has been frequently discussed, but not actually
in progress, as far as I recall.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!


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

Date: Thu, 15 Jun 2000 13:08:36 -0400
From: Lance E Sloan <lsloan@umich.edu>
Subject: Re: [Q] Perl implemented in Java?
Message-Id: <39490D94.8D39B451@umich.edu>

Alun Moon wrote:

> Bart Lateur wrote:
> > No as is, for the reasons Tom Phoenix has given. But I think Larry Wall
> > is being paid (by O'Reilly?) to write a Perl-to-Java-bytecode compiler,
> > so you could RUN your Perl scripts on a Jave only machine.
>
> Just what I need.
> Especially to get the power of Perl's pattern matching into Java.
> (also spilt, and array slices)
>
> Any news of its progress?

I did a Google.com search for "perl java compiler" (without the quotes) and
one
of the matches I found was for perljvm <URL:http://www.ebb.org/perljvm/>.
That page also mentions something else called JPL.  A Google search for
"perl java jpl" returned several hits.




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

Date: Thu, 15 Jun 2000 17:14:29 GMT
From: tpoindex@nyx10.nyx.net (Tom Poindexter)
Subject: Re: [Q] Perl implemented in Java?
Message-Id: <961089197.179782@irys.nyx.net>

In article <8i88bj$db$1@nnrp1.deja.com>,
Andre-John Mas  <ajmas@bigfoot.com> wrote:
>Hi,
>
> Could anyone tell me whether a version Perl has been implemented
> in Java. The reason being, that I am looking for a scripting
> language that can run on machines using a java only system. Currently
> the only candidate I have found is JPython, though I tend to prefer
> a JPerl if such a beast exists.

I don't know of a Perl in pure Java, but there are several scripting
languages for Java:

   Silk - a Scheme R4S4 interpreter
	http://silk.sourceforge.net/silkweb/index.html
   Kawa - another Scheme, compiles to Java byte codes
	http://www.gnu.org/software/kawa/
   NetRexx - Rexx in Java, compiles to Java byte codes
	http://www2.hursley.ibm.com/netrexx/
   Jacl - a Tcl implmentation (also has a nice Tk widget package-SWANK)
	http://dev.ajubasolutions.com/resource/software/java/
   DynamicJava - a Java implementation in Java
	http://www-sop.inria.fr/koala/djava/
   Beanshell - lightweight Java scripting
	http://www.beanshell.org/
   Javascript - (Rhino engine) Mozilla's ECMAscript implementation in Java
	http://www.mozilla.org/js/
   Pnuts - another small script language
	http://javacenter.sun.co.jp/pnuts/

I believe that there are others (Basic, more Schemes, etc.) but I don't have
those references handy.
-- 
Tom Poindexter
tpoindex@nyx.net
http://www.nyx.net/~tpoindex/


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

Date: 15 Jun 2000 10:28:02 -0700
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: Re: [Q] Perl implemented in Java?
Message-Id: <m1r99yyhul.fsf@halfdome.holdit.com>

>>>>> "Randal" == Randal L Schwartz <merlyn@stonehenge.com> writes:

Randal> A Perl-to-JVM compiler has been frequently discussed, but not actually
Randal> in progress, as far as I recall.

Oh duh.  Searching for "java" at search.cpan.org didn't reveal
what searching for "jvm" did... the "jasmin" project, which I recalled
but didn't see searching for. :)

From the README:

    This module, B::JVM::Jasmin and the accompanying small program, perljvm
    (which uses B::JVM::Jasmin) implement a Perl to Java Virtual Machine
    compiler.

    The key ways that this is done is through (a) use of of B::* modules that
    come with perl and (b) with the Jasmin JVM assembler.

    Currently, only a small subset of Perl is support on the JVM.  However, this
    module is under active, full-time development by at least one person.  Thus,
    expect frequent releases and support being added for new features all the
    time.

    This module may not be for you.  If you just want to make Perl and Java code
    play together nicely, you probably want JPL.  This software is for you if
    you want to run Perl code directly on the JVM, and is only useful if you can
    tolerate spotty support for a lot of Perl's features.  Or, perhaps if you
    want to hack on it.  See 'Hacking' section below.  :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!


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

Date: Thu, 15 Jun 2000 09:58:58 -0700
From: Larry Rosler <lr@hpl.hp.com>
Subject: Re: [REGEXP] Matching list of comma-separated ID's
Message-Id: <MPG.13b2ab25f1aeb5e298ab84@nntp.hpl.hp.com>

In article <8iaqmt$95k$1@reader1.fr.uu.net>, no@mail.com says...
> >   $string =~ /\d+\.\d\d(, \d+\.\d\d)* ?/
> 
> If you wat to do it likewise,
> 
> /\d+\.\d{2}(, \d+\.\d{2})* ?/
> 
> would be more straight foreward :)

Why is \d{2} more straightforward than \d\d ?  It is also one character 
more to type.

-- 
(Just Another Larry) Rosler
Hewlett-Packard Laboratories
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com


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

Date: 15 Jun 2000 13:14:19 EDT
From: abigail@delanet.com (Abigail)
Subject: Re: A Computer Programmers Profile
Message-Id: <slrn8ki4pk.jil.abigail@alexandra.delanet.com>

Employer (jenniferbNOjeSPAM@oreilly.com.invalid) wrote on MMCDLXXIX
September MCMXCIII in <URL:news:073055cc.658194f0@usw-ex0106-048.remarq.com>:

Oh, someone from O'Reilly. 

[] Hello. I am looking to create a "computer programmers profile". I am
[] looking to find out:

Cool. A survey.

[] Where do computer programmers "hang out" on the Internet?

Usenet, MUDs, IRC.

[] What websites do they visit?

Newspaper sites. use.perl.org. Slashdot.

[] What magazines do they read?

Scientific American.

[] How old are they generally?

o/~ I'm older than I once was, younger than I will be. o/~

[] I am looking for this information in the interest to be able to find
[] computer programmers for employment when I need them. They have been
[] hard to find (the good ones anyway), and I am trying to find them!!

<plug>
Well, I need a job ASAP, with a visa and/or green card.
</plug>


Abigail
-- 
$_ = "\x3C\x3C\x45\x4F\x54";
print if s/<<EOT/<<EOT/e;
Just another Perl Hacker
EOT


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

Date: 15 Jun 2000 17:30:54 +0100
From: nobull@mail.com
Subject: Re: accessing file with samba
Message-Id: <u9snuenby9.fsf@wcl-l.bham.ac.uk>

Paula Jakobs <pjakobs@wt.net> writes:

> I'm running a script from our NT machine that needs to access a file on
> our linux machine. I have Samba set-up to do sharing on the directory
> where the file is located, and I can get to it fine from windows
> explorer. I'm having problems figuring out how to access it from the
> perl script.

Obvious question: is the Perl script running as the same user as the
user who was running windows explorer?  If not then this is probably a
permissions problem.

-- 
     \\   ( )
  .  _\\__[oo
 .__/  \\ /\@
 .  l___\\
  # ll  l\\
 ###LL  LL\\


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

Date: Thu, 15 Jun 2000 11:25:51 -0400
From: Drew Simonis <care227@attglobal.net>
Subject: Re: Average Salary?
Message-Id: <3948F57F.51328CA1@attglobal.net>

paul_maas@my-deja.com wrote:
> 
> Hi,
> 
> I am trying to find out the average salary of a Web Developer
> (CGI/PERL) and Database Administrator. So one person.
> 

I wouldn't touch a DBA job for under 80K.  But you have so
many unknowns in this post.  Lots of factors are considered
before someone will decide what the work is worth.

a) is the work fun (ie. creative control v. drone work)
b) how large is the database?  what time will be dedicated to it?
c) how large is the site?

etc etc...

Someone programming for a 30 page site with a small order 
tracking DB will expect alot less than someone programming a
3000 page site with dynamically generated pages based upon
user queries, preferences, etc.


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

Date: Thu, 15 Jun 2000 10:02:47 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Binary Encoding Data
Message-Id: <Pine.GSO.4.10.10006151001220.5301-100000@user2.teleport.com>

On Thu, 15 Jun 2000, Dougas Garstang wrote:

> I think I solved it with...
> 
> $packed = pack("B8","01000001");
> @bits = unpack("B8",$packed);
> 
> Would it be safe to say, that since length($packed) = 1, that its worked?

I'd have to say that that's not sufficient.

> I thought the second arguement to pack was supposed to be the format it was
> STORED in. Instead its the format of the string argument itself.

The first argument to pack() is the template, the remaining args are the
list of data to be packed. If you unpack with the same template, the
return value should (generally) be that same list of data.

Cheers!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



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

Date: 15 Jun 2000 16:20:16 GMT
From: stanley@skyking.OCE.ORST.EDU (John Stanley)
Subject: Re: Bot for this group to auto-answer queries?
Message-Id: <8iavo0$4u9$1@news.NERO.NET>

In article <961044460.18283@itz.pp.sci.fi>,
Ilmari Karonen  <usenet11123@itz.pp.sci.fi> wrote:
>Specifically, it should store a list of every e-mail address it has
>ever replied to, and only reply to those that are new to it.  There
>should also be a header ("X-No-Autoreply"?) which could be included in
>a post to prevent the bot from replying to it.  Both of these features

No. Getting crap from a robot must be opt-in, not opt-out. 



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

Date: 15 Jun 2000 16:26:01 GMT
From: Ilmari Karonen <iltzu@sci.invalid>
Subject: Re: Bot for this group to auto-answer queries?
Message-Id: <961084867.22980@itz.pp.sci.fi>

In article <henry-037E45.21260815062000@news.metropolis.net.au>, Henry wrote:
>In article <961044460.18283@itz.pp.sci.fi>, Ilmari Karonen 
><usenet11123@itz.pp.sci.fi> wrote:
>> 
>>  1. The bot shall not post to Usenet.
>> 
>> An autogenerated message cannot, by definition, carry new information.
>> Therefore it is not signal, and posting it to the group would lower
>> the signal/noise ratio.
>
>A FAQ, by definition, cannot carry new information either.  Neither can 
>pointers to FAQs.  I assume you are rallying the troops to declare jihad 
>on such affronts?

I have most definitely expressed an opinion against _excessive_ FAQ
posting in the past.  In fact, I have participated in a constructive
effort to address this problem in another newsgroup - for details, see
http://www.sci.fi/~iltzu/ascii/ada/ or e-mail ada@itz.pp.sci.fi .

The point of a FAQ list is to concentrate as much of the inevitable
FAQ noise into a single, minimally redundant and easily filterable
chunk, instead of spreading it over numerous replies.  Your bot in
its originally suggested form would accomplish the opposite.


>>  3. The bot shall not encourage FAQs in the group.
>> 
>> There should be a way to submit questions to the bot through channels
>> other than Usenet, such as e-mail and/or a web form.  These channels
>> should be clearly marked as being preferred over posting to Usenet.
>
>Such systems already exist in other channels.  The whole point of a Bot 
>was to deal with the situation in _this_ channel.  A surplus of 
>hamburgers in America does not help the starving millions in Africa.

The problem is that the appropriate way to deal with the situation in
this channel is to move as much of it as possible somewhere else.

The questions are not analogous to hamburgers, but to hungry people.
Why would you want to bring more hungry people to Africa?


>Your disapproval is noted.

That is all I ask for, and that if you do proceed, you do so with
caution.  Suggesting a bot earns you some criticism.  Running an
unobtrusive and useful bot could earn you praise.  A noisy bot would
earn you nothing but flames, hatred, and possibly a lost account.

-- 
Ilmari Karonen - http://www.sci.fi/~iltzu/
Please ignore Godzilla and its pseudonyms - do not feed the troll.



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

Date: 15 Jun 2000 16:50:06 GMT
From: bmetcalf@baynetworks.com (Brandon Metcalf)
Subject: Re: Bot for this group to auto-answer queries?
Message-Id: <8ib1fu$k1n$1@spinner.corpeast.baynetworks.com>

godzilla@stomp.stomp.tokyo writes:

 > Post a link to your bot. I would like
 > to test his or her metal.

You still haven't figured out that everything is *not* cgi...

Brandon


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

Date: 15 Jun 2000 16:50:06 GMT
From: bmetcalf@baynetworks.com (Brandon Metcalf)
Subject: Re: Bot for this group to auto-answer queries?
Message-Id: <8ib1fu$k1n$2@spinner.corpeast.baynetworks.com>

henry@penninkilampi.net writes:

 > I just finished building a bot.
 > 
 > This bot is programmed to continuously scan a given newsgroup, looking 
 > for messages with the word "help" in the subject line.

Henry,

I've got a good use for your bot.  Everytime someone new posts a message
to this newsgroup have it send a message that they are not to take
advice from the troll and that the troll should immediately go into
their killfile.  Everyone else can killfile it as well and we can all be
happy.

Brandon


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

Date: Thu, 15 Jun 2000 10:17:18 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Bot for this group to auto-answer queries?
Message-Id: <Pine.GSO.4.10.10006151013160.5301-100000@user2.teleport.com>

On Thu, 15 Jun 2000, Henry wrote:

> The problem is that there seems to be this attitude that UseNet is
> only for humans, and that bots are not welcome.  It wouldn't matter
> how _useful_ the responses were, that attitude would still be there.

Is it because this attitude that UseNet is only for humans that you come
to see me today? :-)

If a bot answered as well as a human does, I assure you that it would be
welcome. But it would be no _more_ welcome as another human answerer would
be. How much is that?

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



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

Date: 15 Jun 2000 13:23:24 EDT
From: abigail@delanet.com (Abigail)
Subject: Re: Bot for this group to auto-answer queries?
Message-Id: <slrn8ki5al.jil.abigail@alexandra.delanet.com>

Henry (henry@penninkilampi.net) wrote on MMCDLXXX September MCMXCIII in
<URL:news:henry-88E93C.22305215062000@news.metropolis.net.au>:
!! 
!! Bots, on the other hand, are immediate, interactive, and save you from 
!! having to manually sift through thousands of lines of completely 
!! irrelevant garbage.
!! 
!! They work on IRC, and they work with data mining.  Agents (call them 
!! bots, spiders, or whatever you want) are the easiest way to get the 
!! information you want.  People use them.


Bots generally don't trigger the appropriate response. On the #perl
channel on EFnet, the bot sometimes gives a useful answer to someones
query, but more than 95% of the time, a useful answer is generated by
the bot only after a regular that knows how to push the buttons rephrases
the question.



Abigail
-- 
perl -MNet::Dict -we '(Net::Dict -> new (server => "dict.org")
                       -> define ("foldoc", "perl")) [0] -> print'


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

Date: 15 Jun 2000 17:24:52 GMT
From: Ilmari Karonen <iltzu@sci.invalid>
Subject: Re: Bot for this group to auto-answer queries?
Message-Id: <961089425.29523@itz.pp.sci.fi>

In article <8iavo0$4u9$1@news.NERO.NET>, John Stanley wrote:
>In article <961044460.18283@itz.pp.sci.fi>,
>Ilmari Karonen  <usenet11123@itz.pp.sci.fi> wrote:
>>Specifically, it should store a list of every e-mail address it has
>>ever replied to, and only reply to those that are new to it.  There
>>should also be a header ("X-No-Autoreply"?) which could be included in
>>a post to prevent the bot from replying to it.  Both of these features
>
>No. Getting crap from a robot must be opt-in, not opt-out. 

This is a delicate issue.  My personal opinion is that anything less
obtrusive than the comp.infosystems.www.authoring.cgi moderator bot
would probably be acceptable.  Adding opt-in to the above requirements
would unfortunately pretty much stop the bot from doing anything.

Whether we actually should have a bot in this newsgroup is not an
issue I would express an opinion about at this stage.  But if there is
to be bot, it should *only* reply to newbies who delurk with a FAQ.

-- 
Ilmari Karonen - http://www.sci.fi/~iltzu/
Please ignore Godzilla and its pseudonyms - do not feed the troll.



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

Date: Thu, 15 Jun 2000 17:36:38 GMT
From: robb4444@my-deja.com
Subject: Can Perl use SSL or HTTPS protocol?
Message-Id: <8ib474$5ct$1@nnrp1.deja.com>

Hi. My name's Robb. I'm relatively new to Perl. I was just wondering if
anybody know how to use Perl with SSL or HTTPS protocol.

**Here's my goal**
Retrieve a webpage through the HTTPS protocol.

I also don't want to use a package like OpenSSL.
I'd like to write it myself. Any good references or tips?

Robb Samuell


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


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

Date: Thu, 15 Jun 2000 11:03:15 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Can Perl use SSL or HTTPS protocol?
Message-Id: <Pine.GSO.4.10.10006151102410.5301-100000@user2.teleport.com>

On Thu, 15 Jun 2000 robb4444@my-deja.com wrote:

> **Here's my goal**
> Retrieve a webpage through the HTTPS protocol.
> 
> I also don't want to use a package like OpenSSL.
> I'd like to write it myself. Any good references or tips?

Start with the RFCs, and always check the return value from system calls.
Cheers!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



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

Date: Thu, 15 Jun 2000 16:13:13 GMT
From: "Daniel van den Oord" <danielxx@bart.nl>
Subject: curious databse of webhosting like geocities
Message-Id: <tg725.1375$%h3.28429@Typhoon.bART.nl>

I'm curious what kind of database geocities uses to store the info of their
users
I know they are using CGI scripts for form proccesing but if they are using
ODBC or SQL or whatever I don't know. Does anybody have some more
information.. If not what would be the best database to maintain when
frequently used and getting kinda huge ?!? at the moment I'm working with
plain ordinary text files on a NT server which works just fine but will it
continue to work fine ?!?

Daniel van den Oord      ( Daniel304 RTCL )





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

Date: Thu, 15 Jun 2000 11:35:32 -0500
From: Tom Briles <sariq@texas.net>
Subject: Re: curious databse of webhosting like geocities
Message-Id: <394905D4.A29C3E7A@texas.net>

Daniel van den Oord wrote:
> 
> I'm curious what kind of database geocities uses to store the info of their
> users
> I know they are using CGI scripts for form proccesing but if they are using
> ODBC or SQL or whatever I don't know. Does anybody have some more
> information..

info@geocities.com

> If not what would be the best database to maintain when
> frequently used and getting kinda huge ?!? at the moment I'm working with
> plain ordinary text files on a NT server which works just fine but will it
> continue to work fine ?!?

Perhaps you aren't aware that comp.lang.*perl*.misc is a newsgroup for
discussing the computer language Perl.

HTH.

- Tom


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

Date: Thu, 15 Jun 2000 09:40:26 -0700
From: Jeff Zucker <jeff@vpservices.com>
Subject: Re: curious databse of webhosting like geocities
Message-Id: <394906FA.6E25D47D@vpservices.com>

Daniel van den Oord wrote:
> 
> I'm curious what kind of database geocities uses to store the info of their
> users
> I know they are using CGI scripts for form proccesing but if they are using
> ODBC or SQL or whatever I don't know. Does anybody have some more
> information.. If not what would be the best database to maintain when
> frequently used and getting kinda huge ?!?

You should probably ask your database questions in a database newsgroup,
but the perl part of your answer is three letters:  DBI.  This group of
related modules lets you access almost any kind of database so it will
work no matter what the answer to your question turns out to be.

> at the moment I'm working with
> plain ordinary text files on a NT server which works just fine but will it
> continue to work fine ?!?

That depends on how big the files will grow, how airtight you need
things to be, and other factors.  DBI works with text file databases
fine also so one upgrade path is to start using DBI with your current
files and then experiment with other databases and when/if you make a
switch over, there will be very little to change in your scripts since
DBI works *mostly* the same from one database to another.

-- 
Jeff


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

Date: Thu, 15 Jun 2000 16:17:38 +0100
From: "mike solomon" <mike.solomon@eps.ltd.uk>
Subject: Re: default shell for 'backtick' commands
Message-Id: <8ias2q$48omu$1@fu-berlin.de>

if you explicitly use ksh in the command it should work

`ksh comand`

Regards

Mike Solomon


<duckjibe@my-deja.com> wrote in message news:8i5tbd$9n2$1@nnrp1.deja.com...
> Is it possible to change the shell used for `backtick` commands?
> It uses sh and I need to use ksh.
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.




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

Date: 15 Jun 2000 15:32:25 GMT
From: mjtg@cus.cam.ac.uk (M.J.T. Guy)
Subject: Re: default shell for 'backtick' commands
Message-Id: <8iasu9$ln1$1@pegasus.csx.cam.ac.uk>

Tad McClellan <tadmc@metronet.com> wrote:
>On 15 Jun 2000 12:25:54 -0000, Anno Siegel <anno4000@lublin.zrz.tu-berlin.de> wrote:
>>
>>In any case, all the methods to call an external program (exec, system,
>              ^^^
>>backticks, open) share the behavior that (under Unix) they call /bin/sh
>>to run the program in certain circumstances and run it directly (i.e.
>                                                 ^^^^^^^^^^^^^^^
>>using execvp() or similar) in others.  I don't see how using a different
>>method would help solve the original poster's problem.
>
>
>Backticks _always_ use the shell.

Nope.   Anno's description is correct  -  after all, the various methods
do all use the same code.   See the source for details.


Mike Guy


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

Date: Thu, 15 Jun 2000 16:26:33 +0100
From: "Tony Shrimpoton" <ts@relson.net>
Subject: Re: default shell for 'backtick' commands
Message-Id: <8iasja$1s4$1@vg170.it.volvo.se>

Hi ,

you could try this , i have used this in a ksh script when i needed to run s
bsh script and it worked fine

    `export SHELL=/bin/sh;/usr/lcoal/shell.script`

Tony
Anno Siegel wrote in message <8iai0i$9f1$1@lublin.zrz.tu-berlin.de>...
>Drew Simonis  <care227@attglobal.net> wrote in comp.lang.perl.misc:
>>duckjibe@my-deja.com wrote:
>>>
>>> Is it possible to change the shell used for `backtick` commands?
>>> It uses sh and I need to use ksh.
>>
>>Better question is what are you doing with backticks, and could
>>that task be better accomplished.  Its usually a better idea to
>>call external programs in other ways.
>
>Why?  Backticks have their place.
>
>In any case, all the methods to call an external program (exec, system,
>backticks, open) share the behavior that (under Unix) they call /bin/sh
>to run the program in certain circumstances and run it directly (i.e.
>using execvp() or similar) in others.  I don't see how using a different
>method would help solve the original poster's problem.
>
>Anno




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

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


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