[9793] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 3386 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Aug 7 06:07:00 1998

Date: Fri, 7 Aug 98 03:00:18 -0700
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Fri, 7 Aug 1998     Volume: 8 Number: 3386

Today's topics:
        "Here" documents and the mystery that is FTP <pearse@mail.shebang.net>
    Re: "Here" documents and the mystery that is FTP (Sean McAfee)
    Re: "Here" documents and the mystery that is FTP <pearse@mail.shebang.net>
    Re: comp.lang.perl.announce redux <boys@aspentech.com>
    Re: hiding user input (nobody)
    Re: hiding user input birgitt@minivend.com
    Re: Including form with perl script (-)
    Re: Intriguing coderef question <jwb79@mail.idt.net>
    Re: Intriguing coderef question (M.J.T. Guy)
        Just go thro this I can't believe this <s12345@sp.ac.sg>
        mirroring CPAN thru socks proxy? <dereks@fc.hp.com>
        New Distribution files for Activeperl!!! <pep_mico@hp.com>
    Re: password and DOS b_redeker@my-dejanews.com
    Re: Perl Beautifier Home Page <quednauf@nortel.co.uk>
    Re: Perl course <jwb79@mail.idt.net>
    Re: Q:Threaded 5.005 Under hpux? <dereks@fc.hp.com>
    Re: Regarding autosplit.ix <rootbeer@teleport.com>
    Re: Search Engine (-)
        Speed Up Perl <usern@interaccess.nl>
    Re: Teaching Perl (David Cantrell)
    Re: When is the "Perl Cookbook" coming out? dave@mag-sol.com
        WIn Perl For 98 r_staples@my-dejanews.com
        X-File was reopened, and now cancer man smokes Crack! <quednauf@nortel.co.uk>
        Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)

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

Date: Fri, 07 Aug 1998 01:01:25 -0500
From: pearse <pearse@mail.shebang.net>
Subject: "Here" documents and the mystery that is FTP
Message-Id: <35CA9834.85A6B0D7@mail.shebang.net>

I have two identical perl scripts that look remarkably similar to the
following:

#!/usr/bin/perl

print <<EOF;

test

EOF

One was written via vi via telnet. The other was written on a Wintel box
and ftp'd over. Guess which one barfs?  I get the following error:

Can't find string terminator "EOF" anywhere before EOF at eof-test line
3.

So I tried the following and ftp'd it over:

#!/usr/bin/perl
print "test\n";

That works. So what is my FTP client doing to my files that mucks up
"Here" documents. Don't tell me I found a bug. I'm not that clever.

Cheers,

Robert



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

Date: Fri, 07 Aug 1998 06:17:52 GMT
From: mcafee@battlezone.rs.itd.umich.edu (Sean McAfee)
Subject: Re: "Here" documents and the mystery that is FTP
Message-Id: <k_wy1.828$hF4.3627990@newbabylon.rs.itd.umich.edu>

In article <35CA9834.85A6B0D7@mail.shebang.net>,
pearse  <pearse@mail.shebang.net> wrote:
>I have two identical perl scripts that look remarkably similar to the
>following:

>#!/usr/bin/perl
>
>print <<EOF;
>
>test
>
>EOF

>One was written via vi via telnet. The other was written on a Wintel box
>and ftp'd over. Guess which one barfs?  I get the following error:

>Can't find string terminator "EOF" anywhere before EOF at eof-test line
>3.

Most likely the file you FTPed from your Wintel box has an extra carriage
return character at the end of every line.  Perl sees "EOF^M" at the end of
your here-document, which doesn't match your stated terminator "EOF".
Remove the ^M's with your favorite text editor, or with
"perl -i -pe 's/\cM$//' filename", or yet some other method, and try again.

-- 
Sean McAfee | GS d->-- s+++: a26 C++ US+++$ P+++ L++ E- W+ N++ |
            | K w--- O? M V-- PS+ PE Y+ PGP?>++ t+() 5++ X+ R+ | mcafee@
            | tv+ b++ DI++ D+ G e++>++++ h- r y+>++**          | umich.edu


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

Date: Fri, 07 Aug 1998 01:17:50 -0500
From: pearse <pearse@mail.shebang.net>
Subject: Re: "Here" documents and the mystery that is FTP
Message-Id: <35CA9C0E.B887A2E2@mail.shebang.net>

Ok, that sounds cool. When I open it in vi after ftp'ing it over, it works. I
can't see the ^M's but I guess they're being removed when I save the buffer.
Why can't I see them? I can if I open a MS Word doc in vi on the Linux box.

Thanks,

Robert

Sean McAfee wrote:

> In article <35CA9834.85A6B0D7@mail.shebang.net>,
> pearse  <pearse@mail.shebang.net> wrote:
> >I have two identical perl scripts that look remarkably similar to the
> >following:
>
> >#!/usr/bin/perl
> >
> >print <<EOF;
> >
> >test
> >
> >EOF
>
> >One was written via vi via telnet. The other was written on a Wintel box
> >and ftp'd over. Guess which one barfs?  I get the following error:
>
> >Can't find string terminator "EOF" anywhere before EOF at eof-test line
> >3.
>
> Most likely the file you FTPed from your Wintel box has an extra carriage
> return character at the end of every line.  Perl sees "EOF^M" at the end of
> your here-document, which doesn't match your stated terminator "EOF".
> Remove the ^M's with your favorite text editor, or with
> "perl -i -pe 's/\cM$//' filename", or yet some other method, and try again.
>
> --
> Sean McAfee | GS d->-- s+++: a26 C++ US+++$ P+++ L++ E- W+ N++ |
>             | K w--- O? M V-- PS+ PE Y+ PGP?>++ t+() 5++ X+ R+ | mcafee@
>             | tv+ b++ DI++ D+ G e++>++++ h- r y+>++**          | umich.edu
>



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

Date: Fri, 07 Aug 1998 09:34:49 +0100
From: Ian Boys <boys@aspentech.com>
Subject: Re: comp.lang.perl.announce redux
Message-Id: <35CABC29.1CFB@aspentech.com>

Abigail wrote:
> 
> Russ Allbery (rra@stanford.edu) wrote on MDCCCI September MCMXCIII in
> ++
> ++ Yes, but you're wrong.  None of those hierarchies with the possible
> ++ exception of relcom.* are regional hierarchies.  They're all world-wide
> ++ *language* hierarchies.
> 
> That would still leave many languages without their own hierarchie.
> Dutch for instance. Sure, there's an nl.* hierarchie, but those nl stand
> for the Netherlands. There's no du.* hierarchie that I know about.
> 
> I wonder what the uk.* hierarchie is about - postings in English? ;)
> 

Perhaps, yes. English is not the same language as American, as you
rapidly find out if you try visiting for any significant time in that
country :-)

Ian


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

Date: 7 Aug 1998 06:03:50 GMT
From: ac1@fspc.netsys.itg.telecom.com.au (nobody)
Subject: Re: hiding user input
Message-Id: <6qe5c6$i6i@newsserver.trl.OZ.AU>

Can we knock this thread on the head?  It's chewing up bandwidth which can
be better used talking about Perl.  That is, after all, what the
newgroups all about, isn't it?

AC

John Call (johnc@interactive.ibm.com) wrote:


: Abigail wrote:

: > Is there something wrong with your eyes that you didn't read the FAQ?
: >
: > Abigail
: > --
: > perl -wleprint -eqq-@{[ -eqw\\- -eJust -eanother -ePerl -eHacker -e\\-]}-

:     I thought once the "Perl Studs" got their .moderated group that any advice they
: gave here would be a little less venomous. I guess not. You got the new group. Go
: be rude in there. If you give advice here then take the Tom P.'s approach please.

: John Call



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

Date: Fri, 07 Aug 1998 08:29:00 GMT
From: birgitt@minivend.com
Subject: Re: hiding user input
Message-Id: <6qedsb$9ru$1@nnrp1.dejanews.com>

In article <m3vho5n7mi.fsf@windlord.Stanford.EDU>,
  Russ Allbery <rra@stanford.edu> wrote:
> Chris Nandor <pudge@pobox.com> writes:
>
> > Oh my.  Would they make any LESS money if Burnore -- or anbody -- does
> > or does not have X-No-Archive?  Please.
>
> Sure.  DejaNews cannot claim to have a complete archive.  They would
> probably make more money if they could.
>

But that was my question in the first place. How ? If the archives
were more complete, chances are that more users would access these
archives, but they do provide the access for free, so I don't
understand how they earn more money through getting more hits or
higher usage of their search engine.

The only thing I would see, is that they can raise their
prices for ad space, because they can prove how much more traffic
they get, when the archives get more complete.

Is that the only connection between making profit and the
completeness of the archives ?

> Chris, were you around when DejaNews started?  Did you follow the
> discussions that led to the creation of X-No-Archive in the first place?
> I don't believe you realize how *many* people were upset and just *how*
> angry they were.

Yes, but were they angry because they felt abused in their
"freedom to choose to have archived their speech", or differently
said, because they felt abused as they lost the freedom to
be silent for prosperity ?

Or were they angry because of the indirect money making aspect
for dejanews to host the archives ?

Only being a five month old  usenet user, that is a real question.

>
> > What if *I* decided to archive clp.misc, and made it available for free,
> > without ads?  Would that be OK?
>
> It is generally considered to be good manners, if you are maintaining an
> archive of any sort, to honor the X-No-Archive header.  Something along
> those lines is likely to be put into the next revision of the news
> standards, after which point if you were maintaining a publically
> accessible archive and did not honor the header, and this caused problems
> for someone, it's quite likely you could be sued and would lose.

Yes, but for what would they get sued ? If they could prove that they
do not make a profit out of the archives, wouldn't they still be
sued for violating privacy rights may be? (What rights are these,
if I want my right honored to be heard once in a usenet group, but my
posts not listed for ever in the archives, a right to be forgotten,
so to speak) ?


> You seem to be under the impression that I think DejaNews is bad.  That's
> not what I'm saying.  I'm saying that the semantics of Usenet do not
> include archiving for indefinite periods of time, and that when a service
> is created that changes those semantics, having an opt-out mechanism is
> honestly the least that one could expect.

Definitely.

Birgitt Funk

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum


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

Date: Thu, 06 Aug 1998 18:51:23 GMT
From: root.noharvest.\@not_even\here.com (-)
Subject: Re: Including form with perl script
Message-Id: <35c9fa55.106934890@news2.cais.com>

prakashpatel@hotmail.com Said this:

>Hello there,
>            I want to know how to add my form right in the script, instead of
>making .html document and then using get or post method.  For e.g. i know one
>can do "print "<FORM>";". But i need to know if i use text or radio or some
>button, how can i access those variable in the same script.
>         Thanx.

What you need to do is make the script "smart enough" to detect
whether it's being called with data or being called to generate the
form.  This is easy, and can be done any number of ways.

The easiest way is

#!/usr/bin/perl

require "cgi-lib.pl";

&ReadParse;

if ($in{'foo'})
	{
	&DoFormReading;
	}
else
	{
	&DoFormPrinting;
	}


Where 'foo' is a field in your form that you know will have a value if
the form is being submitted.  if it's blank, then we print the form
out.  Obviously, the "&DoFormPrinting" needs to print out a form that
has this script as the form action.






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

Date: 7 Aug 1998 07:04:37 GMT
From: "Jim Babbington" <jwb79@mail.idt.net>
Subject: Re: Intriguing coderef question
Message-Id: <01bdc1d1$cae5b7e0$6488fdc7@dixon>



Aravind Subramanian <aravind@genome.wi.mit.edu> wrote in article <35C9D25A.38B84C92@genome.wi.mit.edu>...
: 
: 
: If $coderef is a reference to an anonymous subroutine as:
: 
:     $coderef = sub { print "Boink!\n"; };
: 
: To execute the subroutine the statement would be:
: 
: &$coderef;
: 
: and the result would be:
: 
: Boink!
: 
: Question: how do I print the contents of the subroutine? In other words
: how do I print (or assign to a scalar var) the statments in the
: subroutine as opposed to the results from these as:
: 
: sub { print "Boink!\n"; }
: 
: The need for this is that the code in the anon subroutine is dynamically
: generated and I'd like the users to see the results of the code as well
: as the code itself.

Try making the anon source printable, then evaluate it:

$printref = 'sub { print "Boink!\n$printref\n"; }';

$coderef = eval($printref);

&$coderef;

I hope this helps, _and_ good luck,

Jim


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

Date: 7 Aug 1998 08:40:03 GMT
From: mjtg@cus.cam.ac.uk (M.J.T. Guy)
Subject: Re: Intriguing coderef question
Message-Id: <6qeeh3$ckt$1@pegasus.csx.cam.ac.uk>

Tom Christiansen  <tchrist@mox.perl.com> wrote:
> [courtesy cc of this posting sent to cited author via email]
>
>In comp.lang.perl.misc, 
>    Aravind Subramanian <aravind@genome.wi.mit.edu> writes:
>:Question: how do I print the contents of the subroutine? In other words
>:how do I print (or assign to a scalar var) the statments in the
>:subroutine as opposed to the results 
>
>You can't.  Perl doesn't keep around the source once it's been compiled.

Not _quite_ true.   If you run under -d, the source is kept  -  see
perldoc perldebug for details.     Not that I particularly recommend
doing it that way.


Mike Guy


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

Date: Fri, 7 Aug 1998 13:50:23 +0800
From: "s12345" <s12345@sp.ac.sg>
Subject: Just go thro this I can't believe this
Message-Id: <6qe6c2$f1h42@scctn03.sp.ac.sg>

Just go thro this I can't believe this
>From nobody@coollist.com Thu Aug  6 21:54:59 1998
>To: mepcoites@coollist.com
>From: nageshwaran  N <nageshwarann@blore.tcs.co.in>
>MIME-Version: 1.0
>Content-Type: text/plain;charset="iso-8859-1"
>Precedence: list
>Subject: FW: Forwarded mail received by VSP -Forwarded
>Reply-To: mepcoites@coollist.com
>
>> ----------
>> From:  Blore-Recruitment
>> Sent:  Friday, August 07, 1998 9:58 AM
>> To:  abasheer; Admin Dept; Ajmal; Anantha Krishna Acharya; Arindam
>> Das; Chandrahasan; Girish S; Gopan Kesavan; Hanumesh S; Hema Nambiar;
>> Hemalatha A; Infrastructure Co-ordination Unit; JayaShekar; Kaustubh V
>> mule; Kumaresan C; M.Kasiram; Madhav Bhat; Madhavi C.; Madhavi S;
>> Madhu Sudan D; Madhu Babu; Mahabalesha C S; Mahalingeshwara S Dhaded;
>> Mir Akbar Ali; Mridul Singal; Murali Manchineella; Nagaraj D;
>> nageshwaran  N; Nandakishore K N; Nazura Fazeel; Nuthan M S; Omkar
>> Nisal; Pattana Shetty; Poongodi; Prasad E; Prashant Nayak; Pratibha S;
>> Preethi Kamble; puneet ghai; Puresh Kumar; Raghu H K; Rajanikanth K;
>> Rajasekhar K; Rajanikanth K; Raja S; Ramesh Kumar R;
>> Ruddarraju.P.V.B.Raju; Sajeev M; Sameer Rao; Sashikala C M; Sasidhar S
>> B; Satishchandra Doreswamy
>> Subject:  FW: Forwarded mail received by VSP -Forwarded
>>
>>
>>
>> ----------
>> From:  B B Shetty
>> Sent:  Thursday, August 06, 1998 12:38 PM
>> To:  Anil Eipe; Antony A G; Asha Shetty; B P Rao; Blore-Recruitment;
>> Booshan N; Chandrahasan; Clement; George Kuncheria; Gowri
>> Balasubramanian; GuruPrasad B; Guruprasad S; Guruprasad Shenoy;
>> Hanumesh S; Hema Nambiar; K.M.Sowgath Ali; Manjunath Mallya; Meera
>> Devaiah; Raghu H K; Chitra Mahadevan; meena venkat
>> Subject:  FW: Forwarded mail received by VSP -Forwarded
>>
>>
>>
>> ----------
>> From:  S.Senthil Kumar
>> Sent:  Thursday, August 06, 1998 12:21 PM
>> To:  ksmalve@mumbai.tcs.co.in; Sajeev M; Vamseedhar T S; guruprasad;
>> Chandrahasan; Nambiar D P; Vidhulla G; mahesji@yahoo.com;
>> sajeevm@yahoo.com; venkat_r@chennai.tcs.co.in; Satheesh Chandran;
>> Shankara Narayan; B B Shetty; Nisha Roshni; Srivathsa M S; meena
>> venkat; Mallika T L; Neetha Melanta; dhapra@hotmail.com; Anil Eipe;
>> shreesha kumar
>> Subject:  FW: Forwarded mail received by VSP -Forwarded
>>
>>
>>
>> ----------
>> From:  Kishore S. Malve[SMTP:ksmalve@mumbai.tcs.co.in]
>> Sent:  Thursday, August 06, 1998 12:03 PM
>> To:  'TCS Bangalore H/W Senthil Kumar'
>> Subject:  FW: Forwarded mail received by VSP -Forwarded
>>
>>
>>
>> ----------
>> From:  Yogendra Sampat[SMTP:sampat_yogendra@tandem.com]
>> Sent:  Wednesday, August 05, 1998 2:11 PM
>> To:  'shirish-lothe@usa.net'; 'yatinp@usa.net';
>> 'rrahate@hotmail.com'; 'deepakshah@mumbai.tcs.co.in';
>> 'rajjad@hotmail.com'; 'uday.gawde@hotmail.com';
>> 'vyas_mahesh@tandem.com'; 'ksmalve@mumbai.tcs.co.in';
>> 'abhijit.karve@seepz.tcs.co.in'; 'vdhavale@mumbai.tcs.co.in';
>> 'subhash.kotwal@mumbai.tcs.co.in'; 'kamalk@delhi.tcs.co.in';
>> 'amitj@delhi.tcs.co.in'
>> Subject:  FW: Forwarded mail received by VSP -Forwarded
>>
>>
>>
>> -----Original Message-----
>> From: NAIK_ZUBER@tandem.com [SMTP:NAIK_ZUBER@tandem.com]
>> Sent: Wednesday, August 05, 1998 10:58 AM
>> To: MEDHEKAR_NILESH.AREALIST_ALL @IGATE
>> Subject: Forwarded mail received by VSP -Forwarded
>>
>>
>> ------------------------  Original Attachment
>> ------------------------
>>  Sent: 1998-08-04  21:16:10     From SMTPGATE @DSS1
>> (KSB-PLW@plw.ltindia.com) : Forwarded mail received by VSP -Forwarded
>> Date: Tue, 04 Aug 1998 14:45:00 +0530
>> From: V S PATANKAR <Vsp-PLW@plw.ltindia.com>
>> To: aap-plw@plw.ltindia.com,ava-plw@plw.ltindia.com,
>>         csm-plw@plw.ltindia.com, djr-plw@plw.ltindia.com,
>>         dnp-cnap@plw.ltindia.com, gyp-plw@plw.ltindia.com,
>>         KSB-PLW@plw.ltindia.com, MMP-PLW@plw.ltindia.com,
>>         mss-cnap@plw.ltindia.com, MVK-PLW@plw.ltindia.com,
>>         npp-plw@plw.ltindia.com, pdb-plw@plw.ltindia.com,
>>         pjp-plw@plw.ltindia.com, pkr-cnap@plw.ltindia.com,
>>         RKH-PLW@plw.ltindia.com, rkj-plw@plw.ltindia.com,
>>         rt-plw@plw.ltindia.com, ssa-plw@plw.ltindia.com,
>>         svg-plw@plw.ltindia.com, udj-plw@plw.ltindia.com
>> Subject: Forwarded mail received by VSP
>> Mime-Version: 1.0
>> Content-Type: text/plain
>> Content-Disposition: inline
>>
>> Please pass this on, I got this from one of my contacts.
>> Please read this and pass it to a few friends!
>>
>> With love, all things are possible. This paper has been sent to you
>> for good luck. The original is in England. It has been around the
>> world nine times. The luck has now been sent to you. You will receive
>> good luck within four days of receiving this letter provided you send
>> it on. This is no joke. You will receive good luck in the mail. Send
>> no money. Send copies to people whom you think need good luck. Don't
>> send money. Fate has no price. Do not keep this letter. It must leave
>> your hands in 98 hours.
>>
>> An officer of the Air Force received $70,000. Joe Elliot received
>> $40,000 and lost it because he broke the chain. While in the
>> Phillipines, Gene Wall lost his wife six days after he received the
>> letter. He had failed to circulate the letter, however, before her
>> death she had won $50,000 in a lottery. The money was transferred to
>> him four days after he decided to mail out this letter.
>>
>> Please send out 20 copies and see what happens in four days. The
>> chain letter comes from Raul Anthony Descfru, a missionary in
>> Venezuela, South America. Since the copy must tour the world, you
>> must send 20 copies to your friends and associates.
>>
>> After a few days, you will get a surprise, this is true, even though
>> you are not superstitious.
>>
>> So do not do the following: Constandine Danz  received this letter in
>> 1958. He asked his secretary to make 20 copies and send them out. A
>> few days later, he won the lottery of two million dollars.
>> Andy Dadle, an office employee, received the letter and forgot it had
>> to leave her hands in 98 hours. He lost his job. Later, finding the
>> letter again, he mailed 20 copies. A few days later he got a better
>> job.
>>
>> The letter was received by a young woman in California. The letter
>> was very faded and barely legible. She promised herself she would
>> retype the letter and send it out, but she put it aside until later.
>> She was plagued with various problems, including expensive car
>> repairs. The letter had not left her hands within 98 hours. She
>> finally typed the letter as promised and got a new car.
>> Remember do not send money. Do not ignore this letter. Remember me
>> always. It works!
>>
>> ------------------------  Something else Attachment
>> ------------------------
>>  Sent: 1998-08-04  21:16:09     From SMTPGATE @DSS1
>> (KSB-PLW@plw.ltindia.com) :
>> smtp_headers_component
>> Received: by gateway.tandem.com (4.14/4.11)
>>         id AA17721; 4 Aug 98 21:08:06 -0700
>> Received: from Tandem.com (suntan.tandem.com [192.216.221.8])
>>         by talia.mis.tandem.com (8.8.7/8.8.7) with ESMTP id VAA19373
>>         for <naik_zuber@mail-gateway.Tandem.com>; Tue, 4 Aug 1998
>> 21:14:09 -0700 (PDT)
>> Received: from mail.ltindia.com ([210.146.186.75])
>>         by Tandem.com (8.8.8/2.0.1) with ESMTP id VAA08582
>>         for <naik_zuber@tandem.com>; Tue, 4 Aug 1998 21:13:46 -0700
>> (PDT)
>> Received: from khyber.ltindia.com - 210.146.186.130 by
>> mail.ltindia.com  with Microsoft SMTPSVC(5.5.1774.114.11);
>>          Wed, 5 Aug 1998 09:43:09 +0530
>> Received: from plw.ltindia.com by khyber.ltindia.com
>> (SMI-8.6/SMI-SVR4)
>>         id JAA23156; Wed, 5 Aug 1998 09:31:45 -0500
>> Received: from PLW-Message_Server by plw.ltindia.com
>>         with Novell_GroupWise; Wed, 05 Aug 1998 09:36:30 +0530
>> Message-Id: <s5c8279e.009@plw.ltindia.com>
>> X-Mailer: Novell GroupWise 4.1
>> Date: Wed, 05 Aug 1998 09:36:13 +0530
>> From: S B KAZI <KSB-PLW@plw.ltindia.com>
>> To: macennuz@mbox2.singnet.com.sg, ahl-plw@plw.ltindia.com,
>>         dds-plw@plw.ltindia.com, hks-lmd@plw.ltindia.com,
>>         jrw-plw@plw.ltindia.com, krk-lmd@plw.ltindia.com,
>>         lsp-plw@plw.ltindia.com, mvn-lmd@plw.ltindia.com,
>>         nbc-plw@plw.ltindia.com, nfd-plw@plw.ltindia.com,
>>         nk-plw@plw.ltindia.com, omf-plw@plw.ltindia.com,
>>         pgj-plw@plw.ltindia.com, rca-plw@plw.ltindia.com,
>>         rjw-plw@plw.ltindia.com, rkh-plw@plw.ltindia.com,
>>         rmh-plw@plw.ltindia.com, scm-plw@plw.ltindia.com,
>>         vlk-lqr@plw.ltindia.com, naik_zuber
>> Subject: Forwarded mail received by VSP -Forwarded
>> Mime-Version: 1.0
>> Content-Type: message/rfc822
>>
>>
>>
>>
>>
>>
>------------------------------------------------------------------
>Free mailing list by Cool List. http://www.coollist.com/
>





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

Date: Fri, 07 Aug 1998 09:40:25 +0000
From: Derek <dereks@fc.hp.com>
Subject: mirroring CPAN thru socks proxy?
Message-Id: <35CACB89.F2EBE643@fc.hp.com>

Folks,

I want to set up a local mirror of CPAN for internal use behind our
firewall.  Ideally I'd like to use our socks gateway for this.

The man page that comes with the mirror.pl program (at
http://www.perl.com/CPAN-local/scripts/ftpstuff/mirror-2.8.tar.gz)
explains how to use it with socks, provided you are using what it refers
to as "a SOCKS version of perl".

Does anybody know what "a SOCKS version of perl" means?  I've read every
perl FAQ I can find and all the READMEs in the distribution, I've
searcehd CPAN and the man pages, and found no clues.  Perhaps a "SOCKS
version of perl" is just one that has been "soxified" using the tools
that come with SOCKS distribution?

Any help would be appreciated.

Thanks,
Derek.



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

Date: Fri, 07 Aug 1998 10:22:24 +0200
From: Pep Mico <pep_mico@hp.com>
Subject: New Distribution files for Activeperl!!!
Message-Id: <35CAB940.46A25644@hp.com>

Hi,

ActiveState has just released a new distribution package for their
ActivePerl, this time this package includes OLE.PM and other missing
that weren't included with the first package.


Check at http://www.activestate.com





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

Date: Fri, 07 Aug 1998 08:28:46 GMT
From: b_redeker@my-dejanews.com
Subject: Re: password and DOS
Message-Id: <6qedrs$9rn$1@nnrp1.dejanews.com>

In article <6qdh6u$8bt$2@nswpull.telstra.net>,
  root@comdyn.com.au (Super-User) wrote:
> In article <6q73u3$9bo$1@nnrp1.dejanews.com>,
> 	b_redeker@hotmail.com writes:
> > Does anyone know how to solve this?
>
> This is the THIRD copy of this post of yours.
>
> See my other answer: Read perlfaq8
>
thank you, but:
* I think I personally posted it TWICE - because I didnt understand the new
Deja-News (I also had to change my username etc), but I may be wrong - anyway,
sorry you all for that (I think there is already enough traffic here as it is)

* after I posted it I finally read the *HIDDEN USER INPUT* thread (i had been
looking for *password*) where the answer was given (TERM::ReadKey etc.)

* I already got the answer a few times as reply to my own posting

thanx anyway

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum


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

Date: Fri, 07 Aug 1998 08:45:07 +0100
From: "F.Quednau" <quednauf@nortel.co.uk>
Subject: Re: Perl Beautifier Home Page
Message-Id: <35CAB083.72E2E791@nortel.co.uk>

Tim Moher wrote:
> 
> Todd Lehman wrote:
> 
> > > http://www.consultix.wa.com/yumpy/cgi-pvt/pbeaut.cgi.
> >

> Thanks!  And please try the new version!
> 

tried it on a code snippet that was lying around there:

ORIGINAL PROGRAM

@arr = qw /1 2 3 4/;

sub a_sub { print "hi, $thing\n"; next L; print "ho, $thing\n"; }

L: for $thing(@arr) {
     if ($thing !=2) { print "$thing\n" }
     else            { &a_sub           }
}


BEAUTIFIED PROGRAM

(Statistics at End)

Beautifier error, code "14"

pbeaut: /www1/yumpy/cgi-pvt/pub/pb.in.32568:    new version failed
syntax check (/www1/yumpy/cgi-pvt/pub/stdin.pb.32568)

Array found where operator expected at - line 7, at end of line
        (Missing operator before ?)
syntax error at - line 7, near "$thing  @arr"
- had compilation errors.

The program executes allright on:
This is perl, version 5.003 with EMBED
        built under hpux at Nov 21 1996 13:03:00
        + suidperl security patch



-- 
____________________________________________________________
Frank Quednau               
http://www.surrey.ac.uk/~me51fq
________________________________________________


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

Date: 7 Aug 1998 06:44:03 GMT
From: "Jim Babbington" <jwb79@mail.idt.net>
Subject: Re: Perl course
Message-Id: <01bdc1ce$eb085ee0$6488fdc7@dixon>



ray <ralba@distorted.net> wrote in article <35CA1ACC.123B61E4@distorted.net>...
: Does anyone of you konw where on could take Perl courses in NYC?
: Preferably in Manhattan.  I have read through Learning Perl, and CGI
: programming by Orielly . The books really helped me out plenty, however,
: I still have plenty of questions and think that some instruction may do
: me good.  let me know,

These people give the RAM DOWN THE THROAT type courses(3-5 days)  around 
the country.

http://am.globalknowledge.com/courses/webtech.html

They are pricey. I can't recommend this course (I didn't take it), but I've heard nothing
bad about it. (I've take other courses from them). If you have extra time to learn Perl,
then save some $$ and check out local schools,or read up on it. (Your desire to 
learn it is 99% of the work).

Good luck.



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

Date: Fri, 07 Aug 1998 09:51:18 +0000
From: Derek <dereks@fc.hp.com>
Subject: Re: Q:Threaded 5.005 Under hpux?
Message-Id: <35CACE16.88E251D0@fc.hp.com>

Hi Dan,

Thanks for the suggestion.

No luck, though.  Exact same failure.

Derek.

Dan Sugalski wrote:

> Derek <dereks@fc.hp.com> wrote:
> : Folks,
>
> : Just wondering whether anybody has yet tried a thread-enabled build of
> : 5.005_01 under hpux?  (Either under HPUX 10.20 with DCE threads, or
> : under 11.0 with POSIX threads?)
>
> : I had a try under 10.20+DCE, no luck.  Compile fails with messages
> : quoted below.   Haven't yet been able to set up an 11.0 box, so I don't
> : know about that.
>
> : Any folks with advice that may save me time?
>
> Try telling Configure you want to add -DOLD_PTHREADS_API to the build. If
> DCE threads match the POSIX d4 spec (which they very well might, given the
> error you got), this'll help.
>
> You might need to add extra libraries in too.
>
>                                         Dan





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

Date: Fri, 07 Aug 1998 05:55:53 GMT
From: Tom Phoenix <rootbeer@teleport.com>
Subject: Re: Regarding autosplit.ix
Message-Id: <Pine.GSO.4.02.9808062253280.74-100000@user2.teleport.com>

On Fri, 7 Aug 1998 b_pillai@hotmail.com wrote:

> Newsgroups: comp.lang.perl.misc, perl.porters-gw, muc.archieve.update,
>     de.comp.lang.perl

That's a tad excessive! It surely didn't need to go to the
perl.porters-gw. But if you must crosspost, try to set followups, as I've
done.

>  Where can find autosplit.ix? 

You get that when you build certain modules.

>  i am looking for the one in
>     ..\perl\auto\POSIX\autosplit.ix

That one is for the POSIX module. If you're not on a POSIX system, you
won't have it. If you do have a POSIX system, but that file is missing,
you should rebuild perl. Good luck!

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



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

Date: Thu, 06 Aug 1998 19:10:53 GMT
From: root.noharvest.\@not_even\here.com (-)
Subject: Re: Search Engine
Message-Id: <35c9fb54.107189676@news2.cais.com>

"Thomas Barnwell" <thomas@marathoncom.com> Said this:

>I've got a contract with two different search engines... :)
>I'll probaly end up hiring someone to write the script, but I was hoping
>there was already one around.
>

It's fairly simple, You just need to initiate a search with each
search engine, retrieve the output and parse out the page to get the
URLs (or URLs and "description").

How much would you be willing to pay for something like this, and what
are the "exact requirements"?

email me at webmaster @ lmnet.com if you want to discuss this....  I
can show you an example - I have a script I wrote for my own use that
queries Excite, Hotbot, Infoseek, Lycos and AltaVista and returns the
first 20 pages from each search engine.  I'd post the URL here, but
then it would no longer be "for my own use" ;)






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

Date: Fri, 07 Aug 1998 11:15:51 +0200
From: user name <usern@interaccess.nl>
Subject: Speed Up Perl
Message-Id: <35CAC5C7.AA8E8F29@interaccess.nl>

Hello all,

Does anyone know how to speed-up perl scripts ? If got a quit large
script running and it takes too long before it responds.
Thanks,  Paul van de Kamer

paulk@interaccess.nl



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

Date: Fri, 07 Aug 1998 09:26:49 GMT
From: NukeEmUp@ThePentagon.com (David Cantrell)
Subject: Re: Teaching Perl
Message-Id: <35cac7e8.79309751@thunder>

On Fri, 07 Aug 1998 11:05:39 +1000,
  Jaime Metcher <metcher@spider.herston.uq.edu.au> enlightened us
thusly:

>Another example - find the username on Win32 the quick and dirty way:
>
>`net config` =~ /User name\s*(\S*)\n/; $username = $1;

------------------------------------------------------
[4NT] C:\>net config
The following running services can be controlled:

   Server
   Workstation

The command completed successfully.
------------------------------------------------------

It would appear that 'net config' only tells you about usernames when
on 9x and not on NT.

--
David Cantrell, part-time NT/java/SQL techie
                full-time chef/musician/homebrewer
                http://www.ThePentagon.com/NukeEmUp


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

Date: Fri, 07 Aug 1998 08:00:33 GMT
From: dave@mag-sol.com
Subject: Re: When is the "Perl Cookbook" coming out?
Message-Id: <6qec70$88p$1@nnrp1.dejanews.com>

In article <6qck63$p8c$1@nnrp1.dejanews.com>,
  dave@mag-sol.com wrote:
> In article <pudge-0608980841530001@192.168.0.3>,
>   pudge@pobox.com (Chris Nandor) wrote:
> > In article <35C8C075.3719B8F9@hotmail.com>, Digital Puer
> > <digital_puer@hotmail.com> wrote:
> >
> > # Does anyone know when O'Reilly is going to release "The Perl Cookbook"?
> > # I would like to order this interesting book from bookpool or amazon
> > # sometime soon.
> >
> > It is coming out within the next week or so, in time for The Perl
> > Conference, and is already available for purchase (backorder purchase, of
> > course) through Amazon.
>
> It's also available to order from O'Reilly <http://www.ora.com> but when I
> ordered ti from there last week they told me that it wouldn't ship until the
> end of December.
         ^^^^^^^^
         [typo! They actually said September!]
>
> Do ORA fulfill Amazon's orders before their own?
>
> Dave...
>

--
dave@mag-sol.com
London Perl M[ou]ngers: <http://www.mag-sol.com/London.pm/>

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum


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

Date: Fri, 07 Aug 1998 07:41:07 GMT
From: r_staples@my-dejanews.com
Subject: WIn Perl For 98
Message-Id: <6qeb2i$729$1@nnrp1.dejanews.com>

I having some trouble running Perl with Win 98.  I d/l the 4 mg file,
installed it and followed all the directions.  My scripts do not run
correctly.

Am I suppose to add something to top of the scripts to have WIN 98 reconize
them, also how do I excute a script from with-in my browser;  ie a survey form
with action = post form.pl  or something.

Any help would be greatly appreciated.

Thanks in advance.

-Ron

Please send responce to ron@staples.org

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum


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

Date: Fri, 07 Aug 1998 09:50:59 +0100
From: "F.Quednau" <quednauf@nortel.co.uk>
Subject: X-File was reopened, and now cancer man smokes Crack!
Message-Id: <35CABFF3.5EECDF08@nortel.co.uk>

F.Quednau wrote:

I think I got it now. Thanks to all for the truly INVALUABLE (not
kidding) information about this sig. Abigail of course was right. It is
documented, I just hadn't understood the workings of (?=...). 

perlfunc/split:
A pattern matching the null string (not to be confused with a null
pattern //, which is just one member of the set of patterns matching a
null
string) will split the value of EXPR into separate characters at each
point it matches that way.: 

@arr =  split /(?=(.*))/s , "Just another Perl Hacker\n";

Just another Perl Hacker\n
^^
Matches between J and u, (null string definitely followed by zero or
more characters, but not moving forward the frog.) The brackets take
everything that matched (the remaining sentence which is used to split
the string, including newline because of the s) and also send it to the
array.

The case that the null string in front of J is matched won't happen, as
the split documentation states. In the second run split moves the frog
forwards:

Just another Perl Hacker\n
 ^^

Matching between u and s, and again, it behaves like the split
documentation suggests (splitting the value of EXPR into separate
characters at each point...) Easy, or what? :)

Well, thank God (actually, thank you people) this was solved at the end.
Today's my last day @ Nortel, which means that my constant connection to
Usenet will cease to exist. My University has got a newsserver, but if
it's in the same state as the other Network equipment I will have to nag
the admins a lot :) I just wanted to thank you all in this group that
don't stop to give valuable information away for free. I didn't have a
clue about Newsgroups, this group was the very first one I saw, and I
must say that I have been very impressed. Nearly all questions get
answered, quickly. And even if an answer might look like a flame, you
can usually still distill some information out of it. You taught me
about Netiquette, and I even saw a major 'flame war' at the very end of
my placement year! (Hiding user input, gee, people are definitely not
hiding that they are humans and love to play with dirt :). Most of all,
I wouldn't know half of what I know about Perl now if you guys wouldn't
be hanging around in this newsgroups. So hope you'll have a great summer
holiday (I will :), and probably see you around !






-- 
____________________________________________________________
Frank Quednau               
http://www.surrey.ac.uk/~me51fq
________________________________________________


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

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


Administrivia:

Special notice: in a few days, the new group comp.lang.perl.moderated
should be formed. I would rather not support two different groups, and I
know of no other plans to create a digested moderated group. This leaves
me with two options: 1) keep on with this group 2) change to the
moderated one.

If you have opinions on this, send them to
perl-users-request@ruby.oce.orst.edu. 


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

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