[15978] in Perl-Users-Digest
Perl-Users Digest, Issue: 3390 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Jun 16 11:10:25 2000
Date: Fri, 16 Jun 2000 08:10:15 -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: <961168215-v9-i3390@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Fri, 16 Jun 2000 Volume: 9 Number: 3390
Today's topics:
PerlCRT 2.05 for Win32 <billhess2000@home.com>
Re: PerlCRT 2.05 for Win32 <rootbeer@redcat.com>
Re: Posting Forms in IE <Peter.Dintelmann@dresdner-bank.com>
Re: problems with swig and/or MakeMaker <rootbeer@redcat.com>
Re: Random string required (Abigail)
Re: Recruiting for a perl CGI expert <russ_jones@rac.ray.com>
Re: Sort arrays of arrays? <care227@attglobal.net>
Re: Sorting a ':' delimeted file by a field value/surna (Michel Dalle)
Re: Taryag Perl <abekohen@cloud9.net>
Re: Taryag Perl <care227@attglobal.net>
Re: Unix database for Perl <care227@attglobal.net>
Re: Up-to-date Perl for OS/2? (Bart Lateur)
Re: uploading files problem <care227@attglobal.net>
Re: using mail-sender with NT scheduler service <Peter.Dintelmann@dresdner-bank.com>
Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Fri, 16 Jun 2000 13:14:27 GMT
From: "Bill Hess" <billhess2000@home.com>
Subject: PerlCRT 2.05 for Win32
Message-Id: <TKp25.2022$fR2.28943@news1.rdc1.mi.home.com>
I am trying to build Perl 5.005_03 with PerlCRT so that sockets work on
Win98 and WinNT
I am using a NT (SP6a) box to build Perl with VC++ 5.0
I am getting the following error - Any suggestions:
Microsoft (R) Program Maintenance Utility Version 1.62.7022
Copyright (C) Microsoft Corp 1988-1997. All rights reserved.
del /f config.h
Could Not Find D:\hess\util\perl\perl5.005_03\win32\config.h
copy config_H.vc config.h
1 file(s) copied.
cl.exe -c -I. -nologo -Gf -W3 -I..\lib\CORE -I.\include -I. -I.. -DWIN32
-D_CONSOLE -DNO_STRICT -DPERLDLL -DPERL_CORE -Od -MD -DNDEBUG -Foperlg
lob.
obj perlglob.c
perlglob.c
link.exe -nologo -nodefaultlib -release -machine:x86 oldnames.lib
kerne
l32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
shell32.lib
ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib
ve
rsion.lib odbc32.lib odbccp32.lib
PerlCRT.lib -out:..\perlglob.exe -subsystem:co
nsole perlglob.obj setargv.obj
c:\program files\devstudio\vc\lib\PerlCRT.lib : fatal error LNK1106: invalid
fil
e or disk full: cannot seek to 0x3822fe11
NMAKE : fatal error U1077: 'link.exe' : return code '0xc'
Stop.
------------------------------
Date: Fri, 16 Jun 2000 07:52:11 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: PerlCRT 2.05 for Win32
Message-Id: <Pine.GSO.4.10.10006160750101.5301-100000@user2.teleport.com>
On Fri, 16 Jun 2000, Bill Hess wrote:
> Newsgroups: comp.lang.perl, comp.lang.perl.misc
If your news administrator still carries comp.lang.perl, please let him
or her know that that newsgroup has not existed since 1995. If you
have such an outdated newsgroup listing, you are probably missing out
on many other valid newsgroups as well. You'll be doing yourself and
many others a favor to use only comp.lang.perl.misc (and other valid
Perl newsgroups) instead.
> I am getting the following error - Any suggestions:
> c:\program files\devstudio\vc\lib\PerlCRT.lib : fatal error LNK1106: invalid
> fil
> e or disk full: cannot seek to 0x3822fe11
I'd suggest that perhaps you have an invalid file, or maybe your disk is
full. Maybe you should fix the file or buy a bigger disk or upgrade
to Linux. :-)
Cheers!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Fri, 16 Jun 2000 15:27:43 +0200
From: "Dr. Peter Dintelmann" <Peter.Dintelmann@dresdner-bank.com>
Subject: Re: Posting Forms in IE
Message-Id: <8ida05$3sv5@intranews.dresdnerbank.de>
Hi,
Rok Kodrun schrieb in Nachricht <3949BE6A.C449241@uni-lj.si>...
>I'm having problems with posting a form:
>When browsing in Netscape, it works OK, but when in IE, pressing Enter
>key immediately posts the form.
>What to do?
>Is there a solution in CGI script, to go back to the form, if Enter was
>pressed or checking the fields if they are empty or something else?
>Since I'm completely new to PERL, how to check for certain fields if
>they where entered or not and go back to form?
this has nothing to do with perl (really ;-).
The reason for this is that in IE the 'submit'
button has the focus automatically. Thus
pressing the enter key invokes the submit
and sends the data to the server.
It is now the responsibility of your server app
to check for a complete form and kindly ask
the user to fill in the missing fields.
How to do this? Depends on how you store
your data in the app. I personally prefer a hash
and ask for the values of certain keys to satisfy
a given set of conditions.
Peter Dintelmann
------------------------------
Date: Fri, 16 Jun 2000 07:39:08 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: problems with swig and/or MakeMaker
Message-Id: <Pine.GSO.4.10.10006160738190.5301-100000@user2.teleport.com>
On Fri, 16 Jun 2000, Johannes wrote:
> Running "perl Makefile.pl", I end up with a Makefile that produced only
> errors like:
> make: Fatal error: Don't know how to make target `Makefile.PL'
>
> Does anybody know what I have done wrong?
Maybe you're calling it "Makefile.pl" when everybody expects it to be
called "Makefile.PL"? :-)
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: 16 Jun 2000 10:47:08 EDT
From: abigail@delanet.com (Abigail)
Subject: Re: Random string required
Message-Id: <slrn8kkghk.kp1.abigail@alexandra.delanet.com>
Marco Natoni (blah@nospam.com) wrote on MMCDLXXXI September MCMXCIII in
<URL:news:3949F7C7.502DC573@nospam.com>:
\\ Abigail,
\\
\\ Abigail wrote:
\\ >>> Has anyone got any suggestions for an efficient way to create
\\ >>> a string of random characters?
\\ >> Get a big on-line book in PostScript format and read from it
\\ >> strings having a random length.
\\ > That of course will not pass any test for randomness. English
\\ > words and PostScript commands will appear far more often than
\\ > you should expect.
\\
\\ This is right but, reading strings of random length, you can not
\\ obtain PS commands or English words, just sequences of characters.
Well, of course you can, if the random string starts at the beginning,
and end at the ending of the word or command, but that is not the
point. The point is that if your base text has for instance the
string "flupgast" many times, you will have far more strings in yours
set of random strings that contain "flupgast" as a substring, or that
start with "pgast" than expected.
\\ Instead, there are characters used more than other ones (e.g., the
\\ space) but I do not figure if that is a so strong randomness requirement
\\ for the OP problem: Really, databases contain characters with
\\ frequencies related to the used language.
Oh, in generally they do, but you don't know what this particular database
is being used for. So, I don't see a need to deviate from the problem as
stated.
Abigail
--
perl -we 'print q{print q{print q{print q{print q{print q{print q{print q{print
qq{Just Another Perl Hacker\n}}}}}}}}}' |\
perl -w | perl -w | perl -w | perl -w | perl -w | perl -w | perl -w | perl -w
------------------------------
Date: Fri, 16 Jun 2000 08:09:54 -0500
From: Russ Jones <russ_jones@rac.ray.com>
Subject: Re: Recruiting for a perl CGI expert
Message-Id: <394A2722.680EE3F3@rac.ray.com>
"David H. Adler" wrote:
>
> On Fri, 9 Jun 2000 14:26:10 +1000, Russell Banks
> <russellb@decideinteractive.com> wrote:
>
> >If you fit the following job description, please contact us by email
>
> You have posted a job posting or a resume in a technical group.
>
etc etc etc
I'm pretty sure that "David H. Adler" is a bot, too.
--
Russ Jones - HP OpenView IT/Operatons support
Raytheon Aircraft Company, Wichita KS
russ_jones@rac.ray.com 316-676-0747
When cryptography is outlawed, only outlaws will
A2bgg c4dc8 aji0i knS4E 7eFj8 22Rl1
ZdGg3 gu8i6 lu12N s6NoG gn3g3 q835n
------------------------------
Date: Fri, 16 Jun 2000 10:37:52 -0400
From: Drew Simonis <care227@attglobal.net>
Subject: Re: Sort arrays of arrays?
Message-Id: <394A3BC0.9B92C097@attglobal.net>
"Henrik Jönsson" wrote:
>
> I inserted the url and numberOfHits in an array. But how do I sort
> this array?
>
> Is there a better way to do this?
Maybe use a hash instead of an array?
------------------------------
Date: Fri, 16 Jun 2000 14:34:33 GMT
From: michel.dalle@usa.net (Michel Dalle)
Subject: Re: Sorting a ':' delimeted file by a field value/surname.
Message-Id: <8ide27$k45$1@news.mch.sbs.de>
In article <uksjkso3hen2dgt68sfv9f06vjutg7b5i4@4ax.com>, Abe Timmerman <abe@ztreet.demon.nl> wrote:
[snip]
>But you probably should read a good explanation of Schwartzian Transform
>first:
> http://www.perl.com/CPAN-local/doc/FMTEYEWTK/sort.html
Indeed - although it took me long enough to grok that ST stuff...
Here's a basic example. Any resemblance with the OP's problem
is pure coincidence. :)
#!/usr/bin/perl -w
use strict;
# Hint : read the comments from bottom to top
print map {$_->[0]} # keep only the line itself for printing
sort { # sort on the two fields you selected below
$a->[1] cmp $b->[1] ||
$a->[2] cmp $b->[2]
}
map { [ $_, (split(/:/))[3,2] ] } # keep the line itself
# + fields 3 and 2 for sorting
# (field numbers start at 0)
<DATA>; # your data - replace with STDIN or FILE
exit;
__DATA__
KIN231:111111-1111:John:Burnes:jburnes@hotmail.com:555121212:greenway 21:PO
251:Bournesporth:Scolarship:YES
KIN232:111111-1112:Ann:Burnes:aburnes@hotmail.com:555121222:greenway 22:PO
252:Bournesporth:Scolarship:YES
KIN233:111111-1113:Mike:Burnes:mburnes@hotmail.com:555121232:greenway 23:PO
253:Bournesporth:Scolarship:NO
KIN234:111111-1114:Libby:Andrews:landrews@hotmail.com:555121242:greenway 24:PO
254:Bournesporth:Scolarship:YES
KIN235:111111-1115:Johnny:Andrews:jandrews@hotmail.com:555121252:greenway
25:PO 255:Bournesporth:Scolarship:YES
Without the word-wrapping, of course :(
Michel
------------------------------
Date: Fri, 16 Jun 2000 10:01:57 -0400
From: "abe kohen" <abekohen@cloud9.net>
Subject: Re: Taryag Perl
Message-Id: <skkcqltsis4103@corp.supernews.com>
"Tad McClellan" <tadmc@metronet.com> wrote in message
news:slrn8ki742.7c8.tadmc@magna.metronet.com...
> On 15 Jun 2000 12:58:33 -0500, Tony Curtis <tony_curtis32@yahoo.com>
wrote:
> >>> On Thu, 15 Jun 2000 17:26:17 GMT,
> >>> Tzadik Vanderhoof <tzadikv@my-deja.com> said:
> >
> >> Is it just a coincidence that ActiveState's lastest
> >> release is "build 613"? I think not.... :)
> >
> >A coincidence with what?
>
>
> What is "Taryag"?
What is "Perl?" (The scripting language?)
Abe
>
>
> --
> Tad McClellan SGML Consulting
> tadmc@metronet.com Perl programming
> Fort Worth, Texas
------------------------------
Date: Fri, 16 Jun 2000 10:25:06 -0400
From: Drew Simonis <care227@attglobal.net>
Subject: Re: Taryag Perl
Message-Id: <394A38C2.D8C56D05@attglobal.net>
abe kohen wrote:
>
> > What is "Taryag"?
>
> What is "Perl?" (The scripting language?)
>
Yup. Now we are all confused!
------------------------------
Date: Fri, 16 Jun 2000 10:53:09 -0400
From: Drew Simonis <care227@attglobal.net>
Subject: Re: Unix database for Perl
Message-Id: <394A3F55.9F563927@attglobal.net>
Bob Tate wrote:
>
> Anyone know a good database for a Unix system that Perl will talk to.
I can't think of one that Perl _won't_ talk to.
Read up on the DBD/DBI database modules.
------------------------------
Date: Fri, 16 Jun 2000 14:42:25 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: Up-to-date Perl for OS/2?
Message-Id: <394a3c4f.17725890@news.skynet.be>
Csaba Raduly wrote:
>>Select 'binary distributions ("ports")', then 'OS/2'. Does that lead
>>you to what you want? Cheers!
>
>That is Perl 5.005_03, from 1998
>Are you listening, Ilya ? :-)
I have my doubts.
But anyway, Ilya seems to consider 5.6 to be to buggy to release to the
general public. He has written that it still contains a lot of things
that HE still needed to fix before a general release.
--
Bart.
------------------------------
Date: Fri, 16 Jun 2000 10:27:48 -0400
From: Drew Simonis <care227@attglobal.net>
Subject: Re: uploading files problem
Message-Id: <394A3964.2EE9D32F@attglobal.net>
Lucas Tsoi wrote:
>
> Thanks you.
>
> the problem is, i can't "chown" unless i log into as root.
>
> I think CGI dealing with uploading files and deleting the uploading files
> is quite ordinary, is that right?
>
> so are there some better ways for doing so?
>
> That means, I can upload the file and delete the files, all by CGI.
>
Your webserver runs as, for example, nobody.
You upload a file, it is owned by the process running the server,
again this is nobody.
You want to delete the file with a process being run by the server,
again, this is nobody.
I don't see a problem. Maybe if you show some error log output?
------------------------------
Date: Fri, 16 Jun 2000 15:19:38 +0200
From: "Dr. Peter Dintelmann" <Peter.Dintelmann@dresdner-bank.com>
Subject: Re: using mail-sender with NT scheduler service
Message-Id: <8id9h1$3sp8@intranews.dresdnerbank.de>
Hi,
Mark Meyer schrieb in Nachricht
<6zh25.1511$YR2.543123@paloalto-snr1.gtei.net>...
>environment: NT 4.0, SP5, ActivePerl version 5.005_03 - binary build 517
>
>i want to stress - that the only thing that has changed is: instead of a
>human clicking on an icon that in turn calls a batch file - i have the AT
>scheduler facility calling the .bat file directly. see example below:
the at command is awful. It always tells you that
everything looks good when it doesn't and the
parser handling its options is not very well designed.
1. Therefore I switched to winat.exe which you can
find in the nt resource kit.
2. The scheduler simply starts a process and does
not care when it will end (process could run forever).
3. Take a look at your path variable. I am not quite
sure wheter a scheduled job has an environment like
an interactive user. Better call all commands with
their full path.
4. Use soon.exe which is like "at in 5 seconds" for
testing purposes. It is part of the nt resource kit.
Hope that helps.
Best regards,
Peter Dintelmann
------------------------------
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 3390
**************************************