flock problem

2002-11-11 Thread Nisim, Amit
Hi All, flock doesn't work when I am running flock to file x from different machines. What I mean: I am running flock from machine XXX on file z If I try to write to file z from machine YYY I succeed. Do you know mechanism like flock that work on several machines ? Amit -- To unsubscribe

Re: flock problem

2002-11-11 Thread Sudarshan Raghavan
On Mon, 11 Nov 2002, Nisim, Amit wrote: > Hi All, > > > flock doesn't work when I am running flock to file x from different machines. > > What I mean: > I am running flock from machine XXX on file z > If I try to write to file z from machine YYY I succeed. > > > Do you know mechanism like fl

Re: File search (Help!!!!!)

2002-11-11 Thread badchoice
this is better, i just wanted to be smart :-) #!perl @command = ('echo 1', 'echo 2', 'echo 3'); -f "/dir$_/file/search/filename" || system($command[$_-1]) for 1..3 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Streaming data into Postgresql

2002-11-11 Thread Randal L. Schwartz
If this is the same posting made to perlmonks, my comment there also applies here. If you are inserting 50,000 records rapidly with Pg, *you must* use transactions. Begin a transaction block, insert 1000 records, and commit it. repeat until done. Otherwise, Pg wraps EACH AND EVERY insert in a t

Installation Problem

2002-11-11 Thread Janfek Esquivel
I'm having problems installing Perl 5.8 in a server with Solaris 8 (Developers Installation), because when I want to install Berkley DB I keep getting an error message that there's a file missing (libdb.a), I don't know what I'm doing wrong or what is missing. Any help will be appreciated. Thank

[OT] Farewell for now..

2002-11-11 Thread Nikola Janceski
I have to unsubscribe from the mailing list due to incompetence of others (not you). Basically the sysadmin turned off the Auto-Archiver on everyone's Outlook because someone lost an important e-mail to it. And we are forced to use Outlook (what I would do for a POP3 server at our work place)... s

replace records, multiple files, partern-matching, controlstructure

2002-11-11 Thread Rob.Grim
Hi, Could anyone give me a hint on how to proceede with the following, I have a Dutch and English datafile and i want to replace Dutch records with English ones, if these records match on a certain on a variable name. Here's an example of the Dutch an English input file. The variablenames -ke

Perl / MySQL Question

2002-11-11 Thread Jessee Parker
In my script, I do the following: I insert x amount of records into a MySQL table, process the information and then delete those records. One of the columns is an autonumber type so it starts at 1 for instance. In my query string I use placeholders. Now sometimes the field which is an autonumber st

Re: [OT] Farewell for now..

2002-11-11 Thread Peter Scott
[Posted and mailed] In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Nikola Janceski) writes: >I have to unsubscribe from the mailing list due to incompetence of others >(not you). >Basically the sysadmin turned off the Auto-Archiver on everyone's Outlook >because someone lost an important e-ma

Threads and Queues.. Can't seem to figure out what I'm doing wrong...

2002-11-11 Thread Thomas L. Sjolshagen
Hi, I'm a *real* newbie when it comes to threading (and rather new to programming in general) After reading the documentation for the Thread.pm module and the threads.pm module, I believe I wrote something that should work just fine... However, if I'm using the Thread.pm module, the following

Sending mail under Windows 95/2000

2002-11-11 Thread Tin-Shan Chau
I have been trying to get the sample program in the ActiveState documentation to work, but without much success. Here is the code: >>> use Net::SMTP; $smtp = Net::SMTP->new('shaw.ca'); # connect to an SMTP server $smtp->mai

File::Find cache?

2002-11-11 Thread Fogle Cpl Shawn B
Does File::Find cache itself to memory even after the script has been completed? I've put a script together that is going to find ~1785 files in 30 directories.. The First time I try my script after computer's turned on... real0m14.972s user0m0.410s sys 0m0.270s and the second time ~

RE: Sending mail under Windows 95/2000

2002-11-11 Thread Kipp, James
> > $smtp = Net::SMTP->new('shaw.ca'); # connect to an SMTP server > $smtp->mail( '[EMAIL PROTECTED]' );# use the sender's > address here > $smtp->to('[EMAIL PROTECTED]');# recipient's address > $smtp->data(); # Start the mail > > c

RE: Sending mail under Windows 95/2000

2002-11-11 Thread Kipp, James
$smtp = Net::SMTP->new('shaw.ca'); # connect to an > SMTP server > > $smtp->mail( '[EMAIL PROTECTED]' );# use the sender's > > address here > > $smtp->to('[EMAIL PROTECTED]');# recipient's address > > $smtp->data(); # Start the mail >

Re: File::Find cache?

2002-11-11 Thread Frank Wiles
.--[ Fogle Cpl Shawn B wrote (2002/11/12 at 04:20:58) ]-- | | Does File::Find cache itself to memory even after the script has been | completed? I've put a script together that is going to find ~1785 files in | 30 directories.. | | The First time I try my script after computer

RE: Sending mail under Windows 95/2000

2002-11-11 Thread Timothy Johnson
Make sure that your sysadmin is allowing internal clients to connect to the mail server via SMTP. You might be set up on Exchange, in which case you might not be using SMTP to connect. -Original Message- From: Kipp, James [mailto:James.Kipp@;mbna.com] Sent: Monday, November 11, 2002 12:1

RE: Perl / MySQL Question

2002-11-11 Thread wiggins
>From the MySQL docs: If you delete the row containing the maximum value for an AUTO_INCREMENT column, the value will be reused with an ISAM, or BDB table but not with a MyISAM or InnoDB table. If you delete all rows in the table with DELETE FROM table_name (without a WHERE) in AUTOCOMMIT mode,

Need Help With Perl! I'm Lost!

2002-11-11 Thread Palm Optins
I purchased a script to handle a mailing list. I have a problem getting it to open my setup.cgi file. I keep getting this error: Can't locate config.cgi in @INC (@INC contains: /usr/local/lib/perl5/5.6.0/i386-bsdos /usr/local/lib/perl5/5.6.0 /usr/local/lib/perl5/site_perl/5.6.0/i386-bsdos /usr/l

Array Iteration

2002-11-11 Thread Chris Rogers
Hi all, I backed myself into a corner and cold use a little help. I have a multi-dimensional array that has a know number of elements at the deepest level but the number of levels is unknown. Here is a brief example: $menuarray[5][0] = "5" $menuarray[5][1] = "Sales" $menuarray[5][2] = "" $menua

Re: Unable to run cgi script

2002-11-11 Thread Shaun
Hi Kelvin, > I have configured httpd.config to point to my directories as follows > ScriptAlias /cgi-bin/  /home/kelvin/cgi-bin/ > > Options +ExecCGI > AddHandler cgi-script cgi pl > You do not need to add the +ExecCGI as ScriptAlias is the only directive that does not need the ExecCGI optio

Re: Unable to run cgi script

2002-11-11 Thread Shaun
Hi Kelvin, > And another thing running the script by the command line just produces > the script, by that I mean, where I would have thought it would have run > the html bit it doesn't. It prints all the tags as well. Or am I > misunderstanding what should happen? Running the script from the comma

Re: Array Iteration

2002-11-11 Thread david
Chris Rogers wrote: > Hi all, > > I backed myself into a corner and cold use a little help. I have a > multi-dimensional array that has a know number of elements at the deepest > level but the number of levels is unknown. Here is a brief example: there are a number of ways of doing what you wa

Re: Array Iteration

2002-11-11 Thread Paul
--- Chris Rogers <[EMAIL PROTECTED]> wrote: > Hi all, Hi, Chris. =o) Suggestion below problem description. > I backed myself into a corner and cold use a little help. I have a > multi-dimensional array that has a know number of elements at the > deepest level but the number of levels is unknown.

Array problem, I think

2002-11-11 Thread Cacialli, Doug
Y'all, I'm new to programming in perl, and relatively new to programming at all, so I apologize if this is a little hard to follow. I've got oodles of data. It looks like this: 0 @F1@ FAM 1 HUSB @I13@ 1 WIFE @I14@ 1 CHIL @I8@ 0 @F2@ FAM 1 HUSB @I10@ 1 WIFE @I8@ 1 CHIL @I11@ 1 CHIL @I12@ etc. T

Re: Array problem, I think

2002-11-11 Thread Cacialli, Doug
One additional thing: The data exists in an array, where each line of raw data is a scalar string within the array. -Original Message- From: Cacialli, Doug Sent: Monday, November 11, 2002 6:18 PM To: '[EMAIL PROTECTED]' Subject: Array problem, I think Y'all, I'm new to programming in p

Re: Array problem, I think

2002-11-11 Thread Jason Tiller
Hi, Doug, :) On Mon, 11 Nov 2002, Cacialli, Doug wrote: > I'm new to programming in perl, and relatively new to programming at > all, so I apologize if this is a little hard to follow. Wasn't hard at all! You described the problem very succinctly. > I've got oodles of data. It looks like this

Re: Array problem, I think

2002-11-11 Thread Wiggins d'Anconia
This solution works well and is clean, if you are curious about some of the *magic* he is performing in his foreach I would suggest reading up on the special variable $_ for those of us experienced in perl it isn't as daunting to just throw a foreach (@array) in the code and know that it is goi

Re: Array problem, I think

2002-11-11 Thread Jason Tiller
Hi, Wiggins, :) On Mon, 11 Nov 2002, Wiggins d'Anconia wrote: > This solution works well and is clean, if you are curious about some > of the *magic* he is performing in his foreach I would suggest > reading up on the special variable $_ for those of us experienced in > perl it isn't as daunting

Re: Array problem, I think

2002-11-11 Thread Wiggins d'Anconia
No need to apologize. Agreed. http://danconia.org Jason Tiller wrote: Hi, Wiggins, :) On Mon, 11 Nov 2002, Wiggins d'Anconia wrote: This solution works well and is clean, if you are curious about some of the *magic* he is performing in his foreach I would suggest reading up on the special v

how did they do it?

2002-11-11 Thread Mariusz
Could someone go to this page ( http://web.dailycamera.com/class/GENERAL/employment.html , then click on "Search Classifieds" and tell me how do they accomplish the following: They give an option to save ads for later display on one page. I looked up the source code and noticed that all their che

RE: how did they do it?

2002-11-11 Thread Kris Juarez
Hi all I dont know that much about perl (newbie) but are they pulling the info from a cookie (for later display)?? Could this be done? Thanks KJ -Original Message- From: Mariusz [mailto:mkubis22@;hotmail.com] Sent: Monday, November 11, 2002 8:47 PM To: perl Subject: how did they do it?

Re: how did they do it?

2002-11-11 Thread Mariusz
I'm quite new as well... As far as your solution; You would still have to first send it to the cookie I think, so my problem still stays the same: "How do I collect the values if the name for the checkbox was the same throughout the whole page (see source)"? Thanks KJ, Mariusz - Original Mes