Hello Bill,
The easiest way is just redefine open and close functions
see File::FlockDir, it's another file-locking module
BC> Hello,
BC> Is it possible to get the filename and path for a file
BC> given just a filehandle?
BC> I wrote a manual file-locking module for win95/98
BC> systems and I
Hello,
Is it possible to get the filename and path for a file
given just a filehandle?
I wrote a manual file-locking module for win95/98
systems and I would like to emulate the interface to
the standard flock for seamless replacement.
Thanks.
Bill
Hello,
Is it possible to get the filename and path for a
files given just a filehandle?
I wrote a manual file-locking module for win95/98
systems and I would like to emulate the interface to
the standard flock for seamless replacement.
Thanks.
Bill
_
e same thing.
#!perl.exe -w
use strict;
my $file_path = 'c:\some\path\to\a\file.txt';
$file_path=~ /^((?:.*[:\\\/])?)(.*)/s;
print $2;
HTH
t0by
-Original Message-
From: Brad Smith [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 11:31 AM
To: [EMAIL PRO
I am building a web interface for uploading files for one of the sub-
committees of our non-profit to be able to share. Since I haven't had
time to learn the CGI module, I am still using the cgi-lib.pl parser file.
When a file is uploaded, for example test.pdf from web form field
'get_file', I