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
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
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
>> 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
"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
> > > >
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
_);
> 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;
>
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
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'
> -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
--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
($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
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]>
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
>
>
--- 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
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
&
--- 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
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
--- 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
19 matches
Mail list logo