[10909] in Perl-Users-Digest
Perl-Users Digest, Issue: 4510 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Dec 29 04:07:14 1998
Date: Tue, 29 Dec 98 01:00:21 -0800
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Tue, 29 Dec 1998 Volume: 8 Number: 4510
Today's topics:
Re: Adding a path to the @INC variable <alber@seanet.com>
Deleting files in Win32 with PERL CGI <bratch@home.com>
Re: Deleting files in Win32 with PERL CGI (Ethan H. Poole)
Re: Embedding perl with Microsoft VC++ <gmj@netaxis.com>
EXPERIENCED IN PERL ? <dawgmaster@earthlink.net>
Re: How to Display multiple image files into HTML templ <shadow01@shaw.wave.ca>
Re: How to get start ? <chatmaster@c-zone.net>
Re: How to read an Audio CD's TOC under LINUX (Leslie Mikesell)
Re: Improve speed of a perl-script <chatmaster@c-zone.net>
Re: Newest precompiled version of Perl? (Ronald J Kimball)
Re: Newest precompiled version of Perl? <mds-resource@mediaone.net>
Re: Perl 5.005_002 and berkeley db problems (Leslie Mikesell)
Re: perl for winnt <vbezard@atos-group.com>
Perl Scripts in MS-DOS <thomas.mundschin@itpro-ag.ch>
Re: Programmer Wanted (freelance) - CGI, Perl, C, SQL <chatmaster@c-zone.net>
Re: Protecting my script from form data (Ronald J Kimball)
Redirecting Output of 'system' <pmarkham@access.k12.wv.us>
Re: Redirecting Output of 'system' <pmarkham@access.k12.wv.us>
Re: Redirecting Output of 'system' <tchrist@mox.perl.com>
Re: Retrospective on comp.lang.perl.moderated? (Ronald J Kimball)
Re: Retrospective on comp.lang.perl.moderated? (Leslie Mikesell)
Re: Usual "Hello, world" problem <ajonsson@csi.com>
Re: where to download the perl 5.0052.zip for win32 ?? targetmailinfo@yahoo.com
Re: Writing many files efficiently (Leslie Mikesell)
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Mon, 28 Dec 1998 20:52:49 -0800
From: "Al in Seattle" <alber@seanet.com>
Subject: Re: Adding a path to the @INC variable
Message-Id: <769o8j$l4u@q.seanet.com>
Interesting answer. I also find (and I'm no expert so bear with me), that
the Perl by Example book, on page 213 seems to show that you can also use
the -I switch at the command line, or set the PERL5LIB environmental
variable to the full pathname. Does this also seem correct? (By the way,
Perl by example seems to be a very good book. It is a bit more of a Unix OS
oriented book, but I am also learning some new stuff for NT from it).
Al
To reply to me via email use alberg@seanet.com
Let's stop spam....
Jonathan Stowe wrote in message <769hdk$2in$1@gellyfish.btinternet.com>...
>On Tue, 29 Dec 1998 12:17:10 +1000 douglas de vine <douglasd@iig.com.au>
wrote:
>> How do I add a path to the @INC variable which contains all the paths to
>> look for *pm files?
>>
>>
>
>From the lib(3pm) manpage.
>
>NAME
> lib - manipulate @INC at compile time
>
>SYNOPSIS
> use lib LIST;
>
> no lib LIST;
>
>/J\
>--
>Jonathan Stowe <jns@btinternet.com>
>Some of your questions answered:
><URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
>Hastings:
<URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: Tue, 29 Dec 1998 05:13:47 GMT
From: Tim Bratcher <bratch@home.com>
Subject: Deleting files in Win32 with PERL CGI
Message-Id: <3688657E.7BAF4F85@home.com>
I am writing Perl scripts for Win32. The script needs
to allow a user (from a protected directory) to delete
files in that directory. The unlink command wasn't
working, so I am using this:
exec "del $ThisFile";
Where $ThisFile is the concatenation of the drive, directory,
and chosen file name. Like, C:\DELFILES\THISFILE.HTML. I
escaped the \'s, so it really looks like C:\\DELFILES\\THISFILE.HTML.
The program works fine until I try to delete a long file name that
contains spaces. From the prompt I can delete files that contain
spaces, like del C:\DELFILES\"Copy of SomeFile.txt" and it works
as long as there are quotes around the filename. So, I tried to
delete C:\\DELFILES\\\"Copy of a File.HTML\" from the CGI program, but
I get a return error code "No such file or directory." I also
print the name of the file I want to delete, and it is correct.
Whe I go to the prompt, I can delete the file.
Anyone know how to delete long file names with spaces via a WIN32
CGI script?
Thanks of you know. I can't find it in a FAQ or anywhere eles on
the WWW.
Tim Bratcher
bratch@home.com
------------------------------
Date: Tue, 29 Dec 1998 05:47:03 GMT
From: ehpoole@ingress.com (Ethan H. Poole)
Subject: Re: Deleting files in Win32 with PERL CGI
Message-Id: <r1_h2.888$P52.5447@news15.ispnews.com>
[Posted and Emailed] In article <3688657E.7BAF4F85@home.com>,
bratch@home.com says...
>
>I am writing Perl scripts for Win32. The script needs
>to allow a user (from a protected directory) to delete
>files in that directory. The unlink command wasn't
>working, so I am using this:
>
>exec "del $ThisFile";
>
>Anyone know how to delete long file names with spaces via a WIN32
>CGI script?
Update your Perl to a version that has a working unlink(). There have been a
few Win32 ports with broken unlink() functionality.
--
Ethan H. Poole | Website Design and Hosting,
| CGI Programming (Perl & C)..
========Personal=========== | ============================
* ehpoole @ ingress . com * | --Interact2Day--
| http://www.interact2day.com/
------------------------------
Date: Tue, 29 Dec 1998 08:12:57 +0000
From: "Geir Magnusson Jr." <gmj@netaxis.com>
Subject: Re: Embedding perl with Microsoft VC++
Message-Id: <36888F09.FBF7CBE4@netaxis.com>
Jonathan Stowe wrote:
>
> On Tue, 29 Dec 1998 01:52:03 +0000 Geir Magnusson Jr. <gmj@netaxis.com> wrote:
> > X-Mailer: Mozilla 4.5 [en] (X11; I; Linux 2.0.34 i586)
<snip>
> > Content-Type: text/plain; charset=iso-8859-1
> > Content-Transfer-Encoding: base64
> >>
> >
> > I must note that I post this with trepidation that Randall Schwartz will
> > reply with somthing containing a large glob of ASCII-encoded drek... :)
> > (see the thread "------What should I use as a Win32 perl interpreter-----
> > " If you get it, please, clue me in...)
> >
>
> Check the header above - this is why your messages appear thus to some and
> this is why *I* get the
> 's embedded everywhere. Some newsreaders do not
> do anything with Content-Type: and Content-Transfer-Encoding: headers - you
<snip>
Thanks. Gngggh. I was wondering what my problem was. I think I have it
fixed now,
and I apologize for this thread becoming perl-free.
[cc jns]
geir
--
Geir Magnusson Jr.
gmj@netaxis.com
Perl's garbage collector abhors a naked circularity. -tc
Chase the dream, not the competition.
------------------------------
Date: Mon, 28 Dec 1998 23:44:09 -0800
From: Dawg Master <dawgmaster@earthlink.net>
Subject: EXPERIENCED IN PERL ?
Message-Id: <36888849.AA5E2A09@earthlink.net>
PERL PROGRAMMER
Very experienced in Perl and Linux Red Hat. Must be able to create
anything we need in Perl, and must be able to adapt to a tremendous
amount of currently existing code. Sys. Admin skills a big plus. Work at
home, full time+ Write bob@tokensystems.com
------------------------------
Date: Tue, 29 Dec 1998 05:53:11 GMT
From: "Webmaster" <shadow01@shaw.wave.ca>
Subject: Re: How to Display multiple image files into HTML template with perl
Message-Id: <b7_h2.1694$Hp.2880@news.rdc1.on.home.com>
I have wrote the following code, however it seems to return error 500
#line that is being executed
# http://www.coversarchive.com/cgi-bin/test.pl?image=Abba_Gold-Back.jpg
print "Content-type: text/html\n\n";
print "<html><head><title>Cover Name</title></head><body>\n";
print "<center><img src=\"../audio/$image"\></center><body>\n";
print "</body></html>\n";
------------------------------
Date: Tue, 29 Dec 1998 00:43:31 -0800
From: TRG Software <chatmaster@c-zone.net>
Subject: Re: How to get start ?
Message-Id: <36889633.44C32FB7@c-zone.net>
Jonathan Stowe wrote:
>
> On Mon, 28 Dec 1998 22:16:21 +0800 Free Stuff <ex5316@netvigator.com> wrote:
> > I'm a begainner.
> > I go to the http://www.perl.com/pace/pub, wishing to download a perl
> > software so that I can learn, test and run the perl lang. on my
> > computer(window 95).
> > But I don't know which one should be downloaded ? Also do I need to
> > download the complier too ?
>
> For Windows 95 you will need to download the ActivePerl distribution at
>
> <URL:http://www.activestate.com/ActivePerl/>
>
> You will be downloading an self installing executable (probably APi508e.exe)
> - for Windows 95 you will also need to install the dcom95 package from
> microsoft but I think that this is fully documented in the installation
> notes.
>
> /J\
> --
> Jonathan Stowe <jns@btinternet.com>
> Some of your questions answered:
> <URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
> Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
And no, you don't have to compile this program. You *can* get the source
and compile it if you want to though. :-) Activestate is the place to be
for Windows.
--
Regards,
Tim Greer - chatmaster@c-zone.net
TRG Software and The Link Worm
http://www.linkworm.com
The Chat Base
http://www.chatbase.com
-----------------------------------------------------------------------
* Creator of Paradise Chat, Chat Central & Spiral Chat
* Receiving over 250,000+ hits a day from users Worldwide!!!
* Sales of custom chat server scripts * CGI/Perl scripting
* Script trouble shooting/security * Modify & debug scripts
* Freelance Perl Scripting for any purpose or application
Copyright ) 1998 TRG Software and The Link Worm.
------------------------------
Date: 29 Dec 1998 00:36:26 -0600
From: les@MCS.COM (Leslie Mikesell)
Subject: Re: How to read an Audio CD's TOC under LINUX
Message-Id: <769t9a$5kq$1@Mars.mcs.net>
In article <367ebb57.5554998@news.netcomuk.co.uk>,
Sideliner <Sideliner@somewhere.com> wrote:
>Can anybody help me with this?
>
>I would really like to read the Table Of Contents from an Audio CD in
>PERL, under LINUX.
>
>I need to be able to read the tracks list including sector offsets etc
>from both IDE and SCSI CD-ROMS.
>
>I have searched CPAN but can't find anything that comes close - any
>hints or suggestions would be most welcome.
>
>Please keep it as simple as possible as I am a newbie to PERL.
The easy way is to find a program that does what you want and
if you need the results in perl, run it via a pipe.
Look at http://www.ping.de/sites/daneb/cdrdao.html to see if
"cdrdao read-toc" will generate what you want.
I'm not sure it is possible to read audio data on all drives,
although the CD-R's should all do it.
Les Mikesell
les@mcs.com
------------------------------
Date: Tue, 29 Dec 1998 00:36:05 -0800
From: TRG Software <chatmaster@c-zone.net>
Subject: Re: Improve speed of a perl-script
Message-Id: <36889475.C6AB3E0B@c-zone.net>
Marcel Beekmans wrote:
>
> I'm building an application for the web. It is a very big appliction, it
> is about 10,000 code-lines. The speed of the appliction is really bad.
> What can I do?
> (It is not impossible to cut the file into 2 or more separate files).
Well, it's not really how "large" the code is per se, it's more of how
"efficient". There are many books and help files to look at to help you
with that. (too many to mention). Try going to http://www.perl.com or
http://www.perl.org, or http://www.ora.com to see all the things I
speak of.
And you can make separate scripts if you like.
--
Regards,
Tim Greer - chatmaster@c-zone.net
TRG Software and The Link Worm
http://www.linkworm.com
The Chat Base
http://www.chatbase.com
-----------------------------------------------------------------------
* Creator of Paradise Chat, Chat Central & Spiral Chat
* Receiving over 250,000+ hits a day from users Worldwide!!!
* Sales of custom chat server scripts * CGI/Perl scripting
* Script trouble shooting/security * Modify & debug scripts
* Freelance Perl Scripting for any purpose or application
Copyright ) 1998 TRG Software and The Link Worm.
------------------------------
Date: Mon, 28 Dec 1998 23:08:09 -0500
From: rjk@linguist.dartmouth.edu (Ronald J Kimball)
Subject: Re: Newest precompiled version of Perl?
Message-Id: <1dkrr1y.aw7t3y3f54lkN@bos-ip-2-184.ziplink.net>
Thomas Turn Jensen <Mukke@get2net.dk> wrote:
> I am currently running perl 5.004_02 (not the activestate thing - the other
> one :) but everybody keeps talking about 5.005, so I was wondering if I'm
> missing something important with my current version.
A quick trip to www.perl.com to download the latest version of Perl for
Win32 systems led me to the following page:
http://www.ActiveState.com/ActivePerl/
ActivePerl is the "'merge' of the two popular Perl ports, and has the
absolute best of both plus more! And, ActivePerl is FREE!"
Build 508 is based on the latest stable Perl release, 5.005_02.
--
_ / ' _ / - aka - rjk@linguist.dartmouth.edu
( /)//)//)(//)/( Ronald J Kimball chipmunk@m-net.arbornet.org
/ http://www.ziplink.net/~rjk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: Mon, 28 Dec 1998 22:47:25 -0600
From: "Michael D. Schleif" <mds-resource@mediaone.net>
Subject: Re: Newest precompiled version of Perl?
Message-Id: <36885EDD.DD71705C@mediaone.net>
Ronald, et al. ==>
>From this remark, shall we infer that ActivePerl is the *only* Perl
recommended for win32? Is this a question legitimate to ask?
Of course, this also begs the question, recommended by whom ? }:-^
Ronald J Kimball wrote:
>
> A quick trip to www.perl.com to download the latest version of Perl for
> Win32 systems led me to the following page:
>
> http://www.ActiveState.com/ActivePerl/
>
> ActivePerl is the "'merge' of the two popular Perl ports, and has the
> absolute best of both plus more! And, ActivePerl is FREE!"
>
> Build 508 is based on the latest stable Perl release, 5.005_02.
--
Best Regards,
mds
mds resource
888.250.3987
"Dare to fix things before they break . . . "
"Our capacity for understanding is inversely proportional to how much we
think we know. The more I know, the more I know I don't know . . . "
------------------------------
Date: 29 Dec 1998 00:49:10 -0600
From: les@MCS.COM (Leslie Mikesell)
Subject: Re: Perl 5.005_002 and berkeley db problems
Message-Id: <769u16$7op$1@Mars.mcs.net>
In article <75p3ma$104$1@nnrp1.dejanews.com>, <bostic@bostic.com> wrote:
>>
>> You might consider switching to mySQL or similar even if the
>> tests all work. We found some severe bugs in Berkeley DB that
>> were not exposed by any of the tests.
>>
>
>I'm sorry to hear this! Did you ever report these bugs to anyone
>(either the author of the Perl modules or Sleepycat Software)?
>
>Regardless, can you be more specific? What problems did you find?
I ran into problems with the 1.x db library on freebsd where
entries would just disappear, sometimes a few hundred at a time
out of a 15,000 entry dbm. I am fairly sure that the problem
was caused by creating entries with small (string length) values,
then updating in place with longer values that eventually exceeded
the page size (4k?) and overwrote nearby items instead of being
relocated. If you don't let values grow beyond the page size or
if you delete and re-insert on the changes where this might occur
you might not see this problem.
Les Mikesell
les@mcs.com
------------------------------
Date: Tue, 29 Dec 1998 09:13:05 +0100
From: "Vincent BEZARD" <vbezard@atos-group.com>
Subject: Re: perl for winnt
Message-Id: <76a327$o1h$1@jaydee.iway.fr>
Hi Shane,
I had the same problem. My environement is the same as yours. In fact, you
have to put in the register, the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters\Script
Map
you have to create a new string key, ".pl" and associate it with
"c:\perl\bin\perl.exe %s %s,2"
Your bin directory must be in execute only, and must be created as an alias.
Vincent BEZARD
vbezard@atos-group.com
Shana Priwer a icrit dans le message
<368798E5.AD193F6A@aba-architects.com>...
>Hi all - still trying to set up Perl and CGI for my website, which I
>host through IIS on a Windows NT 4 Workstation computer. Basically I
>have a file called upload.cgi, which i
>have in d:\winnt\system32\inetsrv\iisadmin\cgi-bin\. The first line of
>upload.cgi, i edited to read this: $SAVE_DIRECTORY = "../../../../Perl";
>
>because i thought it was supposed to go to the Perl path, which is
>d:\perl. When you try to use the upload script over the web, you get a
>501 http error. (you can see this at
>http://208.235.164.47/iisadmin/upload.cgi) -- could someone please
>give me some idea of what's wrong? I've been through the FAQ and can't
>get this resolved.
>
>Many thanks-
>Shana
>
>
>
>---== http://www.newsfeeds.com - Largest Usenet Server In The World! ==---
>
>---== http://www.newsfeeds.com - Largest Usenet Server In The World! ==---
------------------------------
Date: Tue, 29 Dec 1998 09:08:38 +0100
From: Thomas Mundschin <thomas.mundschin@itpro-ag.ch>
Subject: Perl Scripts in MS-DOS
Message-Id: <36888E06.B2B4BF0D@itpro-ag.ch>
we are trying to improve our unattendet NT installation. Our question
is, is there a possibility to work with Perl when you boot with a disket
only in DOS from where we want to start a script who ask use for a few
parameters about the installation (like networkcard, vgacart, name of
the computer...). Is this possible or is there another script lnaguage
other then CMD.
Thnaks Thomas
------------------------------
Date: Tue, 29 Dec 1998 00:50:49 -0800
From: TRG Software <chatmaster@c-zone.net>
Subject: Re: Programmer Wanted (freelance) - CGI, Perl, C, SQL
Message-Id: <368897E9.FA81BFE5@c-zone.net>
atomic@one.net wrote:
>
> To whom it may concern,
>
> Our company is looking for an honest, dedicated, programmer, to develope a
> dynamic internet database. Must have a large amount of experience with any
> of the following: Perl, C, C++, or SQL.
>
> Please submit resume and references in MS word or text format to -
> atomic@one.net Telecommuters welcome!
>
> Michael M. Burch
> Atomic Computers and Design
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Wow, simi-SPAM. :-) Ok.. ok.. Stop begging me.. I'll settle for the
$99,564 per hour contract..and please, I can't stress this enough...
make sure the room is a constant 75 degrees.
--
Regards,
Tim Greer - chatmaster@c-zone.net
TRG Software and The Link Worm
http://www.linkworm.com
The Chat Base
http://www.chatbase.com
-----------------------------------------------------------------------
* Creator of Paradise Chat, Chat Central & Spiral Chat
* Receiving over 250,000+ hits a day from users Worldwide!!!
* Sales of custom chat server scripts * CGI/Perl scripting
* Script trouble shooting/security * Modify & debug scripts
* Freelance Perl Scripting for any purpose or application
Copyright ) 1998 TRG Software and The Link Worm.
------------------------------
Date: Mon, 28 Dec 1998 23:08:12 -0500
From: rjk@linguist.dartmouth.edu (Ronald J Kimball)
Subject: Re: Protecting my script from form data
Message-Id: <1dkrrd2.o16x5b6jgy9jN@bos-ip-2-184.ziplink.net>
Groovy94 <groovy94@aol.com> wrote:
> I am trying to protect my script from malicious form entry data. I have
> included the following code into my own modified readparse and don't think it
> works, but am not sure why.
>
> elsif ($value =~ /([;<>\*\|'$\$\(\)\[\]\{\}:'"]) {
^^^^^
I would guess that it's because you forgot to close the regular
expression.
Your character class is also a bit odd. I don't think you want an
unescaped dollar sign in there. Most of the other characters, on the
other hand, don't need to be escaped within a character class.
/[;<>*|\$(){}\[\]:'"]/
Lastly, it's probably safer to make sure that the string contains only
safe characters, rather than making sure it doesn't contain any unsafe
characters. The latter is much more error-prone; if you forget a
character, for example...
/^[\w\s.,]+$/ # plus whatever other characters you want to allow
--
_ / ' _ / - aka - rjk@linguist.dartmouth.edu
( /)//)//)(//)/( Ronald J Kimball chipmunk@m-net.arbornet.org
/ http://www.ziplink.net/~rjk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: Tue, 29 Dec 1998 00:08:56 +0000
From: Penn Markham <pmarkham@access.k12.wv.us>
Subject: Redirecting Output of 'system'
Message-Id: <36881D98.8867EAEB@access.k12.wv.us>
Hello,
I am fairly new to Perl, so this is probably a simple problem with a
simple solution. I am trying to read a line from a password file based
upon what the user has entered. I want to do this by using 'system
"grep..."'
My problem is that when I try to do this, the output is displayed to the
terminal instead of being stored in a variable. Here's how I have it
set up:
chop($line = system "grep $username passwords";
How do I direct the output of 'grep' to $line? I have tried using pipes
and such, but I get error messages. Can anyone help me with this one?
Thanks in advance!
PENN
------------------------------
Date: Tue, 29 Dec 1998 00:14:37 +0000
From: Penn Markham <pmarkham@access.k12.wv.us>
Subject: Re: Redirecting Output of 'system'
Message-Id: <36881EED.BB246CFC@access.k12.wv.us>
Oops!
There is a mistake in my original posting. There should of course be a
) after the end quotes. This is however, not causing the problem.
Thanks.
------------------------------
Date: 29 Dec 1998 05:50:28 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Redirecting Output of 'system'
Message-Id: <769qj4$8r4$1@csnews.cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc, Penn Markham <pmarkham@access.k12.wv.us> writes:
: chop($line = system "grep $username passwords";
Goodness, no!
See
http://www.perl.com/CPAN-local/doc/manual/html/pod/perlfaq8.html#Why_can_t_I_get_the_output_of_a_
Which should be at "man perlfaq8" on your system. If you're screwed by the
Bill, you might need to use the asquerous "perldoc" command instead of man.
There are three steps to learning perl:
1) get 100 example scripts you can grep through, probably from TSA or PCB.
TSA is at http://www.perl.com/CPAN/authors/Tom_Christiansen/scripts/
PCB CODE is at
ftp://ftp.oreilly.com/published/oreilly/perl/cookbook/pcookexamples.tar.gz
2) keep the online docs handy for searching -- they come with each perl
dist, and include the faq. A web copy is at:
http://www.perl.com/CPAN-local/doc/manual/html/index.html
But this is no substitute for having local on-line docs.
3) find yourself a problem you need to solve you'd otherwise use C or sh
for, and try to do it in perl; choose something simple to start, and
iterate until you're a master.
Everyone keeps starting with #3. It is important to have #1 and #2
ready. Really, really important. There are myriad examples of what
you want there.
--tom
--
Fifty years of programming language research, and we end up with C++ ???
--Richard A. O'Keefe
------------------------------
Date: Mon, 28 Dec 1998 23:08:13 -0500
From: rjk@linguist.dartmouth.edu (Ronald J Kimball)
Subject: Re: Retrospective on comp.lang.perl.moderated?
Message-Id: <1dkrrnt.nopl1dihi00wN@bos-ip-2-184.ziplink.net>
Leslie Mikesell <les@MCS.COM> wrote:
> >There is an automated registration process however.
> >
> >It that what put you off?
>
> Yes, I thought the object of usenet was to exchange questions and
> answers easily. I tried to answer a question and the answer bounced
> back to me instead of getting posted. You can call that something
> other than a rejection if you like but the result is the same -
> the person who asked didn't get their answer.
Did you actually bother to read the "bounce" message? If you had, you
would have seen that your post was not rejected; it was being held
pending your registration. Once you registered, it would be submitted
for posting as normal.
Of course, you only have to register once; after that, all your posts
from the same email address will be submitted without delay.
> If the object of
> the other group is to make it difficult instead of easy, then I'm
> just too lazy to participate.
Well, I guess that's your problem. Registering for
comp.lang.perl.moderated is no more difficult than signing up for an
electronic mailing list.
--
_ / ' _ / - aka - rjk@linguist.dartmouth.edu
( /)//)//)(//)/( Ronald J Kimball chipmunk@m-net.arbornet.org
/ http://www.ziplink.net/~rjk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: 29 Dec 1998 00:12:24 -0600
From: les@MCS.COM (Leslie Mikesell)
Subject: Re: Retrospective on comp.lang.perl.moderated?
Message-Id: <769rs8$5dm$1@Mars.mcs.net>
In article <1dkrrnt.nopl1dihi00wN@bos-ip-2-184.ziplink.net>,
Ronald J Kimball <rjk@linguist.dartmouth.edu> wrote:
>> Yes, I thought the object of usenet was to exchange questions and
>> answers easily. I tried to answer a question and the answer bounced
>> back to me instead of getting posted. You can call that something
>> other than a rejection if you like but the result is the same -
>> the person who asked didn't get their answer.
>
>Did you actually bother to read the "bounce" message?
Yes, I'd say "bothered" is the correct word.
>> If the object of
>> the other group is to make it difficult instead of easy, then I'm
>> just too lazy to participate.
>
>Well, I guess that's your problem. Registering for
>comp.lang.perl.moderated is no more difficult than signing up for an
>electronic mailing list.
I know who I am. Why should I attempt to prove it to someone else
using an unreliable medium just so I could answer someone else's
question?
Les Mikesell
les@mcs.com
------------------------------
Date: Mon, 28 Dec 1998 21:42:57 -0600
From: "AJ" <ajonsson@csi.com>
Subject: Re: Usual "Hello, world" problem
Message-Id: <#V2vP1tM#GA.318@ntawwabp.compuserve.com>
was that directory :\perl\bin? is :\perl\bin in your path?
aj
Gregg Silk wrote in message
<19981227231200.12881.00002265@ng-fd1.aol.com>...
>hey there,
>
>OK I have been reading the FAQs and bought the gecko book, installed Perl5
on
>Win95, typed hello.plx as a text file and saved it in the same dir as perl,
>started the DOS window from Windows Explorer, type >perl hello.plx and get
the
>message:
>
>Can't open Perl script "hello.plx": no such file or directory.
>
>If I just type >perl, the title bar of the DOS window does say Perl, so it
>seems to be working.
>
>Gregg
------------------------------
Date: Tue, 29 Dec 1998 05:07:35 GMT
From: targetmailinfo@yahoo.com
Subject: Re: where to download the perl 5.0052.zip for win32 ??
Message-Id: <769o2j$s7o$1@nnrp1.dejanews.com>
Dear Ronald,
The location you gave me is not the right one for NT4 since I have donwloaded
it and run the configuate.exe and it reply me "the memory size is too large
for NT" at my NT CMD :( .
I have read the newsgroups most of them said we have to recompiling by our
self ... :( why they cannot create a compilied verion like 5.004 :(
If you do have any hints please let me know.
Happy New Year
> You started off in the right place, but you must have taken a wrong turn
> somewhere.
>
> Start at <http://www.perl.com/>. In the yellow sidebar on the left,
> there is a link to "Get the _latest_version_ of Perl." At the bottom of
> that page, in the table labeled "Unix (source)", you can download the
> Perl distribution, as a .tar.gz or .zip file.
>
> The URL for the .zip file is:
>
> http://www.perl.com/CPAN/src/stable.zip
>
>
> > Please tell me where can I download the perl 5.0052.zip file for NT4?? I
have
> > been perl.com many times but I cannot found the location.... I just found
> > the x86perl50052.tar.gz which is seems not win32 file extension.
> >
> > I need the original perl not the activestate since I will use it with the
> > mod_perl apache.
>
> Enjoy!
>
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: 29 Dec 1998 00:24:09 -0600
From: les@MCS.COM (Leslie Mikesell)
Subject: Re: Writing many files efficiently
Message-Id: <769si9$5g6$1@Mars.mcs.net>
In article <75ep03$ont$1@shell2.ba.best.com>,
K. Krueger <kirbyk@best.com> wrote:
>I've got a script that gathers data, parses through it, and writes the data
>out to many (~2000) small files. Unsurprisingly, this is turning out to
>be a beast - the CPU hovers around 80-90% iowait during the writing portion
>of the code. This is just bound to be trouble.
>
>Right now, I'm essentially gathering the filenames and the contents into a
>big hash, doing a foreach on the keys of that hash (the filenames), opening
>up the file, printing the contents to it, and closing it. All in a big
>long loop. (Code available if necessary, but it's pretty basic.)
>
>Is there a better way to do this? Rearchitecting the data structures is
>a big deal, and has some other consequences, but I'm willing to do it if
>it'll dramatically help the problem. I'd rather find some sort of module
>that writes lots of files in a filesystem-efficient way.
The expensive part is that the operating system must scan the directory
to check if you are creating a new file or opening an existing one
each time. There is nothing a module can do to help with this. About
all you can do is construct smaller subdirectories that would each
hold only a few hundred files. A dbm file might be a good fit, or
if you have enough data to be worth the trouble you could use
a real database (mysql and postgresql are free).
Les Mikesell
les@mcs.com
------------------------------
Date: 12 Dec 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 Dec 98)
Message-Id: <null>
Administrivia:
Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing.
]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body. Majordomo will then send you instructions on how to confirm your
]subscription. This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.
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 4510
**************************************