Re: flat file db (do I need mysql?)

2002-11-10 Thread Jenda Krynicky
From: Patricia Hinman <[EMAIL PROTECTED]> > I just wrote a script that reads yahoo directories, > and writes to a temp txt file the portion of > direcetories it's currently working with. Then copies > that temp file to a completed log file, and grabs the > next subcatagory to wo

Re: Flat File Db

2002-07-18 Thread drieux
On Wednesday, July 17, 2002, at 07:04 , George Schlossnagle wrote: >>> The main problem appears to be that instead of taking a different branch >>> if open() or flock() fails you continue on as if they had succeeded. > > flock($fh,LOCK_EX ) is a blocking call, so it won't return until the lock

Re: Flat File Db

2002-07-18 Thread Jenda Krynicky
From: George Schlossnagle <[EMAIL PROTECTED]> > >> The main problem appears to be that instead of taking a different > >> branch if open() or flock() fails you continue on as if they had > >> succeeded. > > flock($fh,LOCK_EX ) is a blocking call, so it won't return until the > l

Re: Flat File Db

2002-07-17 Thread George Schlossnagle
>> The main problem appears to be that instead of taking a different >> branch >> if open() or flock() fails you continue on as if they had succeeded. flock($fh,LOCK_EX ) is a blocking call, so it won't return until the lock is available. // George Schlossnagle // Principal Consultant // Omni

Re: Flat File Db

2002-07-17 Thread John W. Krahn
"John W. Krahn" wrote: > > Jeff wrote: > > > > From: John W. Krahn [mailto:[EMAIL PROTECTED]] > > > > > > Jeff wrote: > > > > > > > > I'm use flat files to manage a list containing approx 25,000 records. For > > > > updates, I write to a temp file then unlink main and rename temp file to > > > >

Re: Flat File Db

2002-07-17 Thread John W. Krahn
Jeff wrote: > > From: John W. Krahn [mailto:[EMAIL PROTECTED]] > > > > Jeff wrote: > > > > > > I'm use flat files to manage a list containing approx 25,000 records. For > > > updates, I write to a temp file then unlink main and rename temp file to > > > main. I use flock for both temp and main

Re: Flat File Db

2002-07-17 Thread George Schlossnagle
_); > next unless $name eq $update; > $new_location = "palm_bay"; > $_ = join( "|", $name, $team, $new_location); > } > continue { > print OUT $_ or print "Error writing $tmp_db: $!\n"; > } > close IN; > close OUT; >

RE: Flat File Db

2002-07-17 Thread Jeff
t;; } -----Original Message- From: John W. Krahn [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 8:11 PM To: [EMAIL PROTECTED] Subject: Re: Flat File Db Jeff wrote: > > I'm use flat files to manage a list containing approx 25,000 records. For > updates, I write to a temp

Re: Flat File Db

2002-07-17 Thread John W. Krahn
Jeff wrote: > > I'm use flat files to manage a list containing approx 25,000 records. For > updates, I write to a temp file then unlink main and rename temp file to > main. I use flock for both temp and main files during update. My main file > gets blown away on occasions. What gives? I can'

RE: Flat File

2001-10-29 Thread Bob Showalter
> -Original Message- > From: Joe Echavarria [mailto:[EMAIL PROTECTED]] > Sent: Sunday, October 28, 2001 7:02 PM > To: [EMAIL PROTECTED] > Subject: Flat File > > > Hi there, > >I have a flat file with the follwoing structure : > > city|name|phone|zip. > >The script save each

Re: Flat File

2001-10-28 Thread birgit kellner
--On Sonntag, 28. Oktober 2001 16:02 -0800 Joe Echavarria <[EMAIL PROTECTED]> wrote: > Hi there, > >I have a flat file with the follwoing structure : > > city|name|phone|zip. > >The script save each row with "\n" at the end. > > If for example i wish to display all rows of the > citi

Re: Flat File

2001-10-28 Thread Scott Lutz
($city,$name,$phone,$zip) = (s/\|/, $variable_representing_each_entry ) print "City=$city\n"; - Original Message - From: "Joe Echavarria" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, October 28, 2001 4:02 PM Subject: Flat File > Hi there, > >I have a flat file wit

Re: flat file (addendum)

2001-07-25 Thread bc
essage - From: "Paul" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "bc" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, July 24, 2001 1:49 PM Subject: Re: flat file (addendum) > > --- Paul <[EMAIL PROTECTED]>

Re: flat file (addendum)

2001-07-24 Thread bc
IL PROTECTED]>; "bc" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, July 24, 2001 1:49 PM Subject: Re: flat file (addendum) > > --- Paul <[EMAIL PROTECTED]> wrote: > Maybe instead of just > > > use CGI; > > you should say > >

Re: flat file (addendum)

2001-07-24 Thread Paul
--- Paul <[EMAIL PROTECTED]> wrote: Maybe instead of just > use CGI; you should say use CGI; use CGI::Carp 'fatalsToBrowser'; That'll help you debug. =o) __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Mes

Re: flat file

2001-07-24 Thread bc
thanks bossman! :) will i like this better than asp? - Original Message - From: "Paul" <[EMAIL PROTECTED]> To: "bc" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, July 24, 2001 1:45 PM Subject: Re: flat file &

Re: flat file

2001-07-24 Thread Paul
--- bc <[EMAIL PROTECTED]> wrote: > i'm an old asp/vbscript dude, i do not know how to "...make sure the > file is open" either? any real quick explanation you can give me to > get the file open in perlScript/CGI? to match what you said below? lol ok: use strict; # option explicit, but bett

Re: flat file

2001-07-24 Thread bc
i'm an old asp/vbscript dude, i do not know how to "...make sure the file is open" either? any real quick explanation you can give me to get the file open in perlScript/CGI? to match what you said below? > --- bc <[EMAIL PROTECTED]> wrote: > > how, in perl/cgi, or, what is a popular way of conne

Re: flat file

2001-07-24 Thread Paul
--- bc <[EMAIL PROTECTED]> wrote: > how, in perl/cgi, or, what is a popular way of connecting to, and > displaying, a csv file's contents to a browser, in table form? Er. Okay, um CSV as in Comma Seperated Values? ...start the page, print the table headers, make sure the file is open, then