[12267] in Perl-Users-Digest
Perl-Users Digest, Issue: 5867 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Jun 3 05:07:15 1999
Date: Thu, 3 Jun 99 02:00:19 -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 Thu, 3 Jun 1999 Volume: 8 Number: 5867
Today's topics:
"$?" variable in NT <ppjohn@ncs.com.sg>
Re: Any Perl certification program? <rhrh@hotmail.com>
Re: Best way to make opportunities known to the communi <del@cimedia.com>
Re: Better than Perl (Juho Cederstrom)
Re: Broken Pipe - nit picking <gellyfish@gellyfish.com>
Re: Can not display inputted data on form <djm@tintagel.net>
Distribute Perl <GLunaVictoria@csi.com>
Re: execute perl on Windows NT via Netscape <webmaster@chatbase.com>
Re: GD, PPM, XML: Parser <matt-news@sergeant.org>
Re: Help Win32::OLE Word <olivier.maas@at-lci.com>
Importing functions into current namespace? (Wayne Venables)
Re: Newbie - would appreciate a hand to get started - T <rhrh@hotmail.com>
Re: Newbie - would appreciate a hand to get started - T <michiel.verhoef@wkap.nl>
Re: Perl 5.003 launching a DOS window - Can I stop this <rhrh@hotmail.com>
Perl Objects <tniemi@mail.student.oulu.fi>
Re: removings " "s from strings (Philip 'Yes, that's my address' Newton)
Re: sendmail doesn't work <webmaster@chatbase.com>
Speed question... <nick@auger.net>
Re: Speed question... <uri@sysarch.com>
Re: Speed question... (Ilya Zakharevich)
Re: Speed question... <uri@sysarch.com>
Re: String extraction problem - please help? <webmaster@avert.org>
uninitialized value? what am i doing wrong? <office@asc.nl>
Re: uninitialized value? what am i doing wrong? <office@asc.nl>
Re: uninitialized value? what am i doing wrong? (Sam Holden)
Re: use File::Copy; my $my_dir = "C:/";chdir($my_dir) <bakulin@eximb.kiev.ua>
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Thu, 03 Jun 1999 13:03:58 +0800
From: John Paopeng <ppjohn@ncs.com.sg>
Subject: "$?" variable in NT
Message-Id: <37560CBE.C99AE57A@ncs.com.sg>
Hello to all.
In Unix "$?" will return 0 if the job is done and success.
My Perl script in Unix can regconize that too.
What about NT???
Seems that my "$?" always return 0 even though the job is fail.
Any help will be very appreciated.
John
--
=========================================================================
mailto:ppjohn@ncs.com.sg
PGP key: http://www.nai.com/products/security/public_keys/lookup_key.asp
Home page: http://www.geocities.com/TheTropics/Island/5251/
==========================================================================
------------------------------
Date: Thu, 03 Jun 1999 08:29:15 +0100
From: Richard H <rhrh@hotmail.com>
Subject: Re: Any Perl certification program?
Message-Id: <37562ECB.56C64D7C@hotmail.com>
Zhang Yangbing wrote:
>
> Hi, there:
>
> I know Perl two years ago and try to get a Perl certification,
> so
> I can convince my future employer that I really know something about
> Perl,
> anyone knows there is some Perl certification program? thanks.
>
> Yangbing Zhang ybzhang@cs.uh.edu
If its a piece of paper youre after try
www.tekmetrics.com
what good it might do you i dont know ;-)
Richard H
------------------------------
Date: Wed, 02 Jun 1999 23:46:26 -0400
From: Del Simmons <del@cimedia.com>
To: Uri Guttman <uri@sysarch.com>
Subject: Re: Best way to make opportunities known to the community?
Message-Id: <3755FA92.998E83D7@cimedia.com>
Thanks for the quick reply! I actually just subscribed and sent an
announcement out! As usual I should have done more digging before I
asked! Now everyone else will know the list is there.
Is there an archive for people who are reading this? It seems like for
something like this, a week or three's worth of posts would be
sufficient and very helpful. What do you think?
Thanks!
-Del
Uri Guttman wrote:
>
> The following message is a courtesy copy of an article
> that has been posted to comp.lang.perl.misc as well.
>
> >>>>> "DS" == Del Simmons <del@cimedia.com> writes:
>
> DS> Hey everyone, thanks for taking the time to read this. I'm wondering
> DS> what you all think is the best way to get the word out to the perl
> DS> community about some good employment opportunities? I'm hoping to have
> DS> broad coverage without having to buy into some service. Is there an Open
> DS> Source job board that I should use? I'm not going to go into details
> DS> about the position because my purpose is not to abuse this group. I'm
> DS> just hoping someone can tell me the proper place to post something like
> DS> that? And is this in an FAQ somewhere I missed?
>
> there is a perl jobs list (announce and wanted) that you can find at
> http://www.pm.org/mailing_lists.shtml. i am the moderator and i haven't
> publicized it much since i haven't automated approvals. most seem to be
> handled fine by majordomo but i have to do some manual approvals which
> is a pain. so this is the unofficial public announcement of this list in
> the group. there are about 100+ subscribers and it is very low volume
> right now.
>
> uri
>
> --
> Uri Guttman ----------------- SYStems ARCHitecture and Software Engineering
> uri@sysarch.com --------------------------- Perl, Internet, UNIX Consulting
> Have Perl, Will Travel ----------------------------- http://www.sysarch.com
> The Best Search Engine on the Net ------------- http://www.northernlight.com
--
Del Simmons Come join the debate at:
del@freespeech.com http://www.freespeech.com
***********************************************************************
"Of liberty I would say that, in the whole plenitude of its extent, it
is unobstructed action according to our will. But rightful liberty is
unobstructed action according to our will within limits drawn around us
by the equal rights of others. I do not add 'within the limits of the
law,' because law is often but the tyrant's will, and always so when
it violates the right of an individual."
--Thomas Jefferson to Isaac H. Tiffany, 1819.
***********************************************************************
------------------------------
Date: Wed, 2 Jun 1999 20:24:04 +0300
From: cederstrom@kolumbus.REMOVE_THIS.fi (Juho Cederstrom)
Subject: Re: Better than Perl
Message-Id: <slrn7laq5k.h3.cederstrom@vortex.cede.net>
On 1 Jun 1999 17:21:57 -0000,
Anony Mail <AnnonyMai1@nym.alias.net> wrote:
> Try Unicon, its more powerful.
You should consider trying this program:
---
#!/usr/bin/perl -w
use strict;
my @langs = ( 'Perl', 'Unicon' );
for( @langs ) {
print "comp.lang.perl.misc is ";
print "*NOT* " unless /^perl$/i;
print "meant for discussions about $_!\n";
}
---
(No big bugs here, right?)
--
#!/usr/bin/perl -wT # Please take a look at my mail address when replying
use CGI;$a=reverse"r56%b6%36%16%H02%l27%56%P02%r56%86%47%f6%e6%A02%t37%".
"57%J=japh";$b=new CGI($a);$c=$b->param(lc(reverse("JAPH")));print"$c\n";
------------------------------
Date: 3 Jun 1999 09:19:08 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Broken Pipe - nit picking
Message-Id: <37563a7c@newsread3.dircon.co.uk>
Andy Cantrell <cantrela@agcs.com> wrote:
>
> Reading in data from a program that produces more output
> than I need. I'm short cutting the output by the following:
>
> open(FH, "alongprog |") or die "Can't run alongprog" ;
> while (<FH>) {
> last if /last line of output I need/o;
> };
> $rc = close(FH) ;
>
> Most of the time FH closes with no problem. Every so often
> I'm getting the message "Broken Pipe" and $rc returns with a
> null. I tried adding the line:
>
> @dont_care = <FH> ;
>
> just prior to the close to suck up the remaining data. That
> seems to quell the message, but should 'alongprog' run much
> longer than what I need, I'll start wasting time. Is there a
> better way to do this?
>
You might look at the perlipc manpage and specifically the section
"Safe Pipe Opens" - that make give you some ideas.
/J\
--
Jonathan Stowe <jns@gellyfish.com>
------------------------------
Date: Wed, 2 Jun 1999 23:01:08 -0500
From: "Jasmine" <djm@tintagel.net>
Subject: Re: Can not display inputted data on form
Message-Id: <3755fe5e.0@206.103.97.91>
The SELECT form tags need special handling, because you can't just use a
VALUE="$field_name"
I realize that you're using genders, but here's the script that I use to run
through the 50 US states that remembers the state the user chose by adding
the SELECTED in the line the user chose. You can adapt it to suit your
needs.
#First, toss the states into an array
@us_states = (
'Alabama',
'More States Here',
'Wyoming'
);
# Start defining the drop down menu
$state_drop_down = qq~
<SELECT NAME="state">
<OPTION VALUE=""> Please select your State</OPTION>
~;
# Run through each state, put a SELECTED
# next to user input
foreach $item(@us_states) {
if ($state eq $item){
$state_drop_down .= " <OPTION VALUE=\"$item\"
SELECTED>$item</OPTION>\n";
}
else {
$state_drop_down .= " <OPTION
VALUE=\"$item\">$item</OPTION>\n";
}
}
# Finished running through states, close drop down menu.
$state_drop_down .= "</SELECT>\n";
# Print it
print "$state_drop_down";
I'm sure it can be perfected, but it it does the job.
Hope this helps,
Jasmine Merced
http://www.tintagel.net/
Brian Browning wrote in message ...
>If my subject line doesn't confuse everyone, my question certainly will.
>
>I have a script comprising of 3 major parts:
>1)A form to input data
>2)A form to retrieve data, using user picked criteria
>3)A form to display and allow modification of inputted data.
>
>My problem is this:
>a) I am using drop down menus and text fields on my data input form. This
>part works fine.
>b) I am using the same drop down menus on my search form. This also seems
to
>work great.
>c)The problem is, when I go to my modify form, none of my data from the
drop
>down menus is appearing on my form.
>
>Here is the code I am using: (and that I am having problems with) The
original
>input drop down menu gave the choice of Male or Female.
>
>print "<TR><TD><strong>TYPE:</strong></TD><TD><SELECT NAME=\"type\"><OPTION
>value=\"Female\">Female</OPTION><OPTION
>value=\"Male\">Male</OPTION></SELECT></TD></TR>\n";
>
>The following is the code I use for the text fields. This information is
>appearing as it should be.
>
> print "<TR><TD><strong>Product Name:</strong></TD><TD><INPUT
>TYPE=\"text\" NAME=\"address\" value=\"$address\" size=40></TD></TR>\n";
>
>I know that for the text fields, I needed to add: value=\$field name\"
>Am I missing something on the drop down menus?
>
>Thanks for any help you can throw my way.
>
>Brian Browning
>bbrowning@home.com
>
>
>
>
>
>
>passme
------------------------------
Date: Thu, 03 Jun 1999 06:57:16 +0200
From: Bill <GLunaVictoria@csi.com>
Subject: Distribute Perl
Message-Id: <37560B2B.E6BA0F6B@csi.com>
I need to distribute Perl programs to Windows machines that don't have
Perl installed. I have the latest Win32 port of Perl that comes with a
compiler facility: perlcc. Unfortunately it doesn't work. In a
programming forum they direct me to this group believing that there is a
patch available for this problem. If any one knows where can I get it I
would be very thankful. I like Perl and I want to use it but if I can't
distribute my programs to non Perl computers I'll be forced to use
another language.
TIA
Bill
------------------------------
Date: Wed, 02 Jun 1999 22:52:31 -0700
From: TRG Software : Tim Greer <webmaster@chatbase.com>
Subject: Re: execute perl on Windows NT via Netscape
Message-Id: <3756181F.23212D28@chatbase.com>
"j.k." wrote:
>
> Please help. How to execute the following prgram on Netscape. I use
> Windows NT4.0
>
> Thanks in advance.
>
<SNIP>
So, what's' the problem? Is your NT system not running the scripts? Is
it not recognizing them as Perl scripts, or associating them with the
Perl executable? Is it error-ing? Is it showing your scripts as if they
were a text file in your web browser? What? Depending on your answer
(and by the looks of the code you posted) it may very well be a question
better posted in a web server NG.
--
Regards,
Tim Greer: chatmaster@chatbase.com / software@linkworm.com
Chat Base: http://www.chatbase.com | 250,000+ hits daily Worldwide!
TRG Software: http://www.linkworm.com | CGI scripting in Perl/C, & more.
Unix/NT/Novell Administration, Security, Web Design, ASP, SQL, & more.
Freelance Programming & Consulting, Musician, Martial Arts, Sciences.
------------------------------
Date: Thu, 03 Jun 1999 09:24:16 +0100
From: Matt Sergeant <matt-news@sergeant.org>
Subject: Re: GD, PPM, XML: Parser
Message-Id: <37563BB0.E76076EE@sergeant.org>
David Cassell wrote:
>
> Errm, maybe not. Before you re-install, you might go to the
> ActiveState website and check under Packages/support. PPM uses the
> XML::Parser module internally, so it's possible to hose this
> [like trying to install a new XML::Parser module from PPM
> itself]. I think ActiveState has a doc on fixing this problem.
XML::Parser is what's returning the error - it's not hosed, some XML
file that it's trying to parse is hosed. Either all the ppd's on AS's
repository are hosed (doubtfull) or ppm.xml on this guy's machine is
hosed.
Matt.
------------------------------
Date: Thu, 03 Jun 1999 09:45:35 +0200
From: Olivier Maas <olivier.maas@at-lci.com>
Subject: Re: Help Win32::OLE Word
Message-Id: <3756329E.6846E694@at-lci.com>
the Answer was (kindly given by Cameron Dorey)
add:
use Win32::OLE::Const 'Microsoft Word';
and modify to :
$res=$document->SaveAs('c:\temp\testtest.txt',wdFormatText);
Olivier Maas a icrit :
> hello, going loco trying to use word to save different docs as texts.
>
> $fichier="c:\\Temp\\test\.doc";
> $application=Win32::OLE->new('Word.Application', 'Quit') || warn
> "Impossible de créer un objet OLE";
> $document=$application->Documents->Open("$fichier");
> #then
> $res=$document->SaveAs('c:\temp\testtest.txt','WdFormatText',undef,undef,undef,undef,undef,undef,undef,undef,undef);
>
> #or: $document->SaveAs(undef,{FileName => "testtest.txt", FileFormat=>
> "WdFormatText"});
> #(tried plenty of combinations quotes, double quotes,etc... save as
> works but just with 1 arg like:
------------------------------
Date: Thu, 03 Jun 1999 06:13:20 GMT
From: wvenable_net@iname.com (Wayne Venables)
Subject: Importing functions into current namespace?
Message-Id: <37561c4c.42375159@news.sprint.ca>
Hello Everyone,
I'm sure I must be missing something obvious, but I'm writing
a multi-module web application. I'm using object-oriented features
but I also want a module which contains global functions. That is, I
want to be able to access the functions by their name only without
prepending the package name. Can I do it, and how?
Thanks,
------------------------------
Date: Thu, 03 Jun 1999 08:18:48 +0100
From: Richard H <rhrh@hotmail.com>
Subject: Re: Newbie - would appreciate a hand to get started - Thanks in advance
Message-Id: <37562C58.447BCC2F@hotmail.com>
> No i have not...
> As far as i understood, active perl would let me develop and test stand alone
activeperl will let you develop and test scripts and their output from a
DOS prompt, but you'll need a webserver to view their output in a
browser, you can get a fair bit of development done without one, but
youll need it sooner or later
Richard H
------------------------------
Date: Thu, 03 Jun 1999 10:51:35 +0200
From: Michiel Verhoef <michiel.verhoef@wkap.nl>
Subject: Re: Newbie - would appreciate a hand to get started - Thanks in advance
Message-Id: <37564217.BB16B47E@wkap.nl>
Look around for "tinyweb" (www.tucows.com), it's a small tsr that enables you to
develop and run CGI on your win95 machine without need of a real server. And
it's free :-)
HTH,
Michiel
Richard H wrote:
> > No i have not...
> > As far as i understood, active perl would let me develop and test stand alone
>
> activeperl will let you develop and test scripts and their output from a
> DOS prompt, but you'll need a webserver to view their output in a
> browser, you can get a fair bit of development done without one, but
> youll need it sooner or later
>
> Richard H
------------------------------
Date: Thu, 03 Jun 1999 08:24:09 +0100
From: Richard H <rhrh@hotmail.com>
Subject: Re: Perl 5.003 launching a DOS window - Can I stop this?
Message-Id: <37562D99.EE606325@hotmail.com>
Dario Rossi wrote:
>
> Hello,
>
> I am running Peer Web Services (PWS) on NT4.0 SP4. I installed Perl 5.003.
> If I access the the server from any other machine the perl scripts execute
> just fine. When I access the perl scripts from the machine that perl and
> the PWS is installed on , when the perl script is accessed, a dos window
> pops up and then disappears quiclky for each script that is executed. This
> only happens on the machine that Perl is installed on.
>
> Is there a way to stop this??
Yes, on your machine you will have the .pl extension associated with
your perl.exe in the file type dialog.
I have .pl associated with wordpad for editing reasons.
to run in dos you must then type >perl script.pl to run it.
To change your assoc's in a File window,
View->Options->FileTypes
Look for perl file or PL file and select edit and change the exe to one
you want.
Richard H
------------------------------
Date: Thu, 3 Jun 1999 08:40:23 +0300
From: Tommi Niemi <tniemi@mail.student.oulu.fi>
Subject: Perl Objects
Message-Id: <Pine.SGI.3.95.990603083326.2787A-100000@paju.oulu.fi>
I'm not very familiar with Perl Objects and I was thinking, how to make
Perl program, where several objects are working at the same time. For
example; I have two packages, parent and child. At first parent wakes
child and after that they both are working independently and
simultaneously (for emaxple writing on the screen 'This is parent', 'This
is child').
What is the best way to do it ?
-Tommi
------------------------------
Date: Thu, 03 Jun 1999 08:00:08 GMT
From: nospam.newton@gmx.net (Philip 'Yes, that's my address' Newton)
Subject: Re: removings " "s from strings
Message-Id: <37563055.6787222@news.nikoma.de>
On 25 May 1999 16:31:24 GMT, sholden@pgrad.cs.usyd.edu.au (Sam Holden)
wrote:
>On 25 May 1999 18:25:56 +0200, Alain Walrant <awalrant@softhome.net> wrote:
>>Make use of regular expression like this:
>>
>>$preOR = " some space before and some space after ";
>>
>>$preOR =~ s/^[ ]*//g ;
>>$preOR =~ s/[ ]*$//g;
>
>What's with the []s???
>What's with the /g???
What's with the * (instead of +)???
Cheers,
Philip
--
Philip Newton <nospam.newton@gmx.net>
------------------------------
Date: Wed, 02 Jun 1999 22:47:13 -0700
From: TRG Software : Tim Greer <webmaster@chatbase.com>
Subject: Re: sendmail doesn't work
Message-Id: <375616E1.E5C2BFD1@chatbase.com>
Bill Jones wrote:
>
> In article <928336338.638375@proxy1.bigplanet.com>, "Sherry"
> <vision4@bigplanet.com> wrote:
>
> > http://easyhomebiz.virtualave.net
Free web server offering CGI... And you bring those troubles here? :-)
I think I'm late on this thread, so excuse my reply post to you Bill.
:-)
> > My permissions are set at chmod666 for all files except my links.cgi which
> > is set for 777
777 on a CGI script? You need to do some reading, and if you have
further problems, then post it to the "CGI" NG.
> >
> > The cgi script is:
> >
> <snip>
> > # FFA Blaster requries that you are running Windows 95\/98.
> > #
> > # Copyright 1998-99 SPCK Software - All rights reserved
^^^^^^^^^^^^^
How embarrassing for them. (Based on the code, let's hope for their
sake, it isn't *their* code. :-)
> <snip>
> > # Server path of sendmail or equivalent.
> > $mailprog = "/usr/sbin/sendmail";
What? A Unix path to sendmail on a Windows system? Like I said, I am
late in this thread, that just seemed odd. :-)
--
Regards,
Tim Greer: chatmaster@chatbase.com / software@linkworm.com
Chat Base: http://www.chatbase.com | 250,000+ hits daily Worldwide!
TRG Software: http://www.linkworm.com | CGI scripting in Perl/C, & more.
Unix/NT/Novell Administration, Security, Web Design, ASP, SQL, & more.
Freelance Programming & Consulting, Musician, Martial Arts, Sciences.
------------------------------
Date: Wed, 02 Jun 1999 18:35:21 -0400
From: nick <nick@auger.net>
Subject: Speed question...
Message-Id: <3755B1A9.B320357@auger.net>
Ok, my perl script goes into a directory of (could be 100,000,000+
files), and opens eace file and takes the first line of it. How fast
will it work, if it is dealing with what could be a million files?
------------------------------
Date: 03 Jun 1999 01:09:58 -0400
From: Uri Guttman <uri@sysarch.com>
Subject: Re: Speed question...
Message-Id: <x7vhd5c1jt.fsf@home.sysarch.com>
>>>>> "n" == nick <nick@auger.net> writes:
n> Ok, my perl script goes into a directory of (could be 100,000,000+
n> files), and opens eace file and takes the first line of it. How fast
n> will it work, if it is dealing with what could be a million files?
if you have that many files in a single dir, it doesn't matter what you
do with the files. the open will kill you as in most file systems that
is a linear search for the file name in the dir.
and you first mention 100+ Million files and then 1 million? which do
you mean? not many file systems could even handle 100 Million files.
uri
--
Uri Guttman ----------------- SYStems ARCHitecture and Software Engineering
uri@sysarch.com --------------------------- Perl, Internet, UNIX Consulting
Have Perl, Will Travel ----------------------------- http://www.sysarch.com
The Best Search Engine on the Net ------------- http://www.northernlight.com
------------------------------
Date: 3 Jun 1999 06:05:24 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: Speed question...
Message-Id: <7j55v4$oem$1@mathserv.mps.ohio-state.edu>
[A complimentary Cc of this posting was sent to Uri Guttman
<uri@sysarch.com>],
who wrote in article <x7vhd5c1jt.fsf@home.sysarch.com>:
> n> Ok, my perl script goes into a directory of (could be 100,000,000+
> n> files), and opens eace file and takes the first line of it. How fast
> n> will it work, if it is dealing with what could be a million files?
>
> if you have that many files in a single dir, it doesn't matter what you
> do with the files. the open will kill you as in most file systems that
> is a linear search for the file name in the dir.
>
> and you first mention 100+ Million files and then 1 million? which do
> you mean? not many file systems could even handle 100 Million files.
You probably mean "not many *Unix* file systems". For me it is
obvious that the guy in question is not using something as restricted
as this.
But the digit 100,000,000+ indeed looks suspicious. This is probably
not a PC - even with HPFS386 you need at least two blocks for a
non-empty file, which gives 1K per file, and means 100G. This rules
out anything PCish. But AFAIK HPFS386 has no problem with directories
with several millions of files. I did never check it, I'm running
OS/2 client, not server, and it has only HPFS, which is much worse -
its performance was reported to decrease starting from circa 200000
files in a directory.
Probably a mainframe...
Ilya
------------------------------
Date: 03 Jun 1999 02:14:40 -0400
From: Uri Guttman <uri@sysarch.com>
Subject: Re: Speed question...
Message-Id: <x7so89byjz.fsf@home.sysarch.com>
>>>>> "IZ" == Ilya Zakharevich <ilya@math.ohio-state.edu> writes:
IZ> <uri@sysarch.com>],
IZ> who wrote in article <x7vhd5c1jt.fsf@home.sysarch.com>:
>> and you first mention 100+ Million files and then 1 million? which do
>> you mean? not many file systems could even handle 100 Million files.
IZ> You probably mean "not many *Unix* file systems". For me it is
IZ> obvious that the guy in question is not using something as restricted
IZ> as this.
IZ> But the digit 100,000,000+ indeed looks suspicious. This is probably
^^^^^
indeed it looks suspicious as it is not a digit. :-)
IZ> not a PC - even with HPFS386 you need at least two blocks for a
IZ> non-empty file, which gives 1K per file, and means 100G. This rules
IZ> out anything PCish. But AFAIK HPFS386 has no problem with directories
IZ> with several millions of files. I did never check it, I'm running
IZ> OS/2 client, not server, and it has only HPFS, which is much worse -
IZ> its performance was reported to decrease starting from circa 200000
IZ> files in a directory.
IZ> Probably a mainframe...
any you mention 1 filesystem that can handle that. maybe a couple of
mainframe ones could too. that means most/not many others could
regardless of whether they are unix.
and given the unclear nature of the post, presuming what he meant
requires the PSI::ESP module. i would hope he read the replies and posts
a better question with some real specifics. and he should make it more
perl specific. these file system ideas are not perlish issues. any
program would clog opening that many files unless the file system was
designed to handle it. i had first hand experience many years ago with a
single dir having hourly log files. it got pretty bad until i rewrote it
to do daily logs in a dir tree.
uri
--
Uri Guttman ----------------- SYStems ARCHitecture and Software Engineering
uri@sysarch.com --------------------------- Perl, Internet, UNIX Consulting
Have Perl, Will Travel ----------------------------- http://www.sysarch.com
The Best Search Engine on the Net ------------- http://www.northernlight.com
------------------------------
Date: Thu, 03 Jun 1999 09:49:07 +0100
From: Andrew Collington <webmaster@avert.org>
Subject: Re: String extraction problem - please help?
Message-Id: <37564183.2006DFA7@avert.org>
Brian McCauley wrote:
> Your problem is inability to read man pages.
I only asked a simple (for you guys) question. There is no need for
sarcasm or for you to put me down in any way like this. You could
simply have said "hey, and if you want more information I suggest you
read the xxxx man page". I mean, God damn it! Not everyone works in a
bloody computer lab and tinkers with linux all the time for a hobby,
ok? Not everyone knows what man pages to look in for what information.
I mean, forgive me for not seeing the obvious here, but I always thought
these newsgroups were to help people out, ask questions to the
knowledgable and to find out answers and, hopefully, learn from what
you've been told. Not to have your abilities, or lack thereof, be put
down with mindless sarcasm all because someone's been better trained, or
has more experience than someone else. For Christ's sake, we all have
to start off somewhere and it's makes it hell of a lot sodding easier
when you get HELPFUL comments and not sarcastic ones.
But other than that, thank you for your answer :) And thank you to
those others as well that have answered it and helped me out. I know
now a URL I can look up for help on regex, and I also know now to look
into that whole m[] bit.
Andy
------------------------------
Date: Thu, 3 Jun 1999 09:48:18 +0200
From: "Bastiaan S van den Berg" <office@asc.nl>
Subject: uninitialized value? what am i doing wrong?
Message-Id: <7j5c2l$agl$1@zonnetje.NL.net>
Use of uninitialized value at verwerk.cgi line 99.
Use of uninitialized value at verwerk.cgi line 100.
Use of uninitialized value at verwerk.cgi line 101.
that's all i get back from my majorly simple perl program
i 'initialize' the scalars with :
$prijslijst_ap=$forms{"prijslijst_ap"};
$prijslijst_dell=$forms{"prijslijst_dell"};
$prijslijst_hp=$forms{"prijslijst_hp"};
$prijslijst_fp=$forms{"prijslijst_fp"};
and then i use them with :
if ($prijslijst_ap ne "") {print "Ik wil een prijslijst van Account
Plus\n";}
if ($prijslijst_dell ne "") {print "Ik wil een prijslijst van Dell\n";}
if ($prijslijst_hp ne "") {print "Ik wil een prijslijst van Hewlett
Packard\n";}
if ($prijslijst_fp ne "") {print "Ik wil een prijslijst van F-Prot\n";}
but then i get the errors you see at the top ..
does anyone have an idea what i'm doing wrong?
i'm gone.. going to get some coke :)
cul8r
buZz
------------------------------
Date: Thu, 3 Jun 1999 09:51:19 +0200
From: "Bastiaan S van den Berg" <office@asc.nl>
Subject: Re: uninitialized value? what am i doing wrong?
Message-Id: <7j5c89$aip$1@zonnetje.NL.net>
btw.
plz no replies like 'you should be reading perl faq 18 subsections 4 & 18
paragraph 12 till 25'
cause i honestly hate the perldocs.. not so much by form , but more by
language ..
it reads like the enquirer , like shit..
cul8r
buZz
------------------------------
Date: 3 Jun 1999 08:44:45 GMT
From: sholden@pgrad.cs.usyd.edu.au (Sam Holden)
Subject: Re: uninitialized value? what am i doing wrong?
Message-Id: <slrn7lcg3t.ifs.sholden@pgrad.cs.usyd.edu.au>
On 3 Jun 1999 09:48:18 +0200, Bastiaan S van den Berg <office@asc.nl> wrote:
>Use of uninitialized value at verwerk.cgi line 99.
>Use of uninitialized value at verwerk.cgi line 100.
>Use of uninitialized value at verwerk.cgi line 101.
>
>
>that's all i get back from my majorly simple perl program
>
>i 'initialize' the scalars with :
>
>$prijslijst_ap=$forms{"prijslijst_ap"};
>$prijslijst_dell=$forms{"prijslijst_dell"};
>$prijslijst_hp=$forms{"prijslijst_hp"};
>$prijslijst_fp=$forms{"prijslijst_fp"};
>
>and then i use them with :
>
>if ($prijslijst_ap ne "") {print "Ik wil een prijslijst van Account
>Plus\n";}
>if ($prijslijst_dell ne "") {print "Ik wil een prijslijst van Dell\n";}
>if ($prijslijst_hp ne "") {print "Ik wil een prijslijst van Hewlett
>Packard\n";}
>if ($prijslijst_fp ne "") {print "Ik wil een prijslijst van F-Prot\n";}
>
>but then i get the errors you see at the top ..
>
>does anyone have an idea what i'm doing wrong?
You are using an undefined value....
You shouldn't be testing with 'ne' you should be using a function to
test if the value is defined. I can't tell you about the function since
your next post specifically asked me not to tell you to look up
the documentation and that is where the function you want it documented...
--
Sam
You are bordering on ridiculous if you think you need to support your
premises. Such an argument is an infinite regression.
--George Reese in <wv0O1.1521$Ge.4809664@ptah.visi.com>
------------------------------
Date: Thu, 3 Jun 1999 08:21:39 +0300
From: "Boris Bakulin" <bakulin@eximb.kiev.ua>
Subject: Re: use File::Copy; my $my_dir = "C:/";chdir($my_dir) || die "Can't change directory! $!"; From Unix I want to read DOS directory
Message-Id: <2.07b3.1PIY5.FCQK83@eximb.kiev.ua>
In <2.07b3.2IIIQ.FCOOJZ@eximb.kiev.ua> news@lucky.net (news@lucky.net) wrote:
In <374e95f5.0@nntp.mmi.org> Dave Evans (devans@radius-retail.kom) wrote:
Sorry that question didn't make a whole lot of sense to me. Nor anybody
else, judging by the lack of posted responses.
What exactly are you trying to do?
Boris Bakulin wrote in message <2.07b3.QEEH.FCFG7E@eximb.kiev.ua>...
>I read FAQ but didn't find answer
>
>If anybody can help ,please
>
>Boris
>
>
Some detailes : I want to read DOS files from SCO UNIX
------------------------------
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 5867
**************************************