Re: [Perl-unix-users] Thoritical limits on perl processes

2003-08-18 Thread Edward Moon
How large are your text files? Perl data structures are often 5x to 10+x the size of the file on disk. If you're processing a 2GB or 3GB file, you may hit swap when processing the file in memory. You may want to look into tieing the file to a variable and processing the file line by line. On

RE: [Perl-unix-users] Using DBI on Redhat 7.1

2002-06-12 Thread Edward Moon
good about requests for PPMing modules. Any particular reason why you're using ActivePerl on Linux? On Wed, 12 Jun 2002, Scott Campbell wrote: > Date: Wed, 12 Jun 2002 14:08:25 -0400 > From: Scott Campbell <[EMAIL PROTECTED]> > To: 'Edward Moon' <[EMAIL PROTECTED]

Re: [Perl-unix-users] Using DBI on Redhat 7.1

2002-06-12 Thread Edward Moon
If you take a close look at the error message, you see that the script is looking for the files in /usr/local/ActivePerl-5.6/lib directory. When you installed DBI & DBD::mysql, the files were probably installed in the regular Perl location (which is /usr/lib/perl5 on my Redhat 6.2 system). I

Re: [Perl-unix-users] Text based browsers which support SSL

2002-04-23 Thread Edward Moon
Newer versions of Lynx (I know 2.8pre and higher) supports SSL as well as basic authentication. If you run 'lynx -version', you should get something like below. Look for 'OpenSSL' to ensure that your version of Lynx supports SSL: Lynx Version 2.8.4rel.1 (17 Jul 2001) libwww-FM 2.14, SSL-MM 1.4.

Re: [Perl-unix-users] What is a simple way to create a delay/timer

2002-01-29 Thread Edward Moon
Oops, there's a typo in the for loop, it should be: for (my $i = 0; $i <= $#a, $i++) { On Tue, 29 Jan 2002, Edward Moon wrote: > sleep is the function you want. > > example: > -- > #!/usr/bin/perl > > my @a = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)

Re: [Perl-unix-users] What is a simple way to create a delay/timer

2002-01-29 Thread Edward Moon
sleep is the function you want. example: -- #!/usr/bin/perl my @a = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10); for (my $i = 0; @a, $i++) { print $a[$i], "\n"; sleep(5); # wait 5 seconds before continuing loop } On Tue, 29 Jan 2002, SuccessInMind wrote: > Hi, > > Ca

Re: [Perl-unix-users] Multiple Invocation Casusing Slow downs

2001-11-06 Thread Edward Moon
You don't provide much detail on what the script does and how your environment is configured. So, I've had to make some assumptions for the following suggestions: 1) Cache data: If the script runs without requiring data from the end user, can you cache the results in a file? You then read from th

Re: [Perl-unix-users] Script works on Windows server but not on UNIXserver

2001-11-01 Thread Edward Moon
You can run into an issue if you are using DOS/Win32 based linebreaks (CRLF) versus Unix based linebreaks (LF I think). On Thu, 1 Nov 2001, Britt wrote: > I am puzzeled that a script will work on Windows servers and not on UNIX >servers.Even a script as simple as hello.pl > > > > Any ideas for

Re: [Perl-unix-users] Limitations of Perl with Mysql??

2001-10-19 Thread Edward Moon
Can you give us more details on what you want to do? Do you want to stuff all 25,000 words into one field? If you need to insert a large amount of data into one database field, I would suggest that you consider doing a file upload (via POST) in your CGI script. You can upload an arbitrarily lar

Re: [Perl-unix-users] LWP::UserAgent - I cannot get a response

2001-08-29 Thread Edward Moon
Your $url is to a HTTPS address. LWP requires the openssl libraries and (I think) Crypt::SSLeay to support HTTPS. You'll need to check with Verio to see if the Crypt module & the openssl libraries are installed. On Wed, 29 Aug 2001, Gia Mccue wrote: > I am new at using Modules. I am writing a

Re: [Perl-unix-users] Perl Newbie - Creating new files

2001-07-26 Thread Edward Moon
If you are new to perl and to CGI in general, I'd suggest you go over the WWW security FAQ: It has a section that covers safe CGI scripting in perl. Writing files in your webserver document tree can be dangerous. I suggest you take a good look at writing secure