Re: getting filename/path from filehandle...

2002-04-27 Thread Eugeniy Ogloblin
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

getting filename/path from filehandle...

2002-04-24 Thread Bill Catlan
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

getting filename / path from filehandle...

2002-04-22 Thread Bill Catlan
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 _

RE: Getting filename

2002-04-21 Thread Toby Stuart
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

Getting filename

2002-04-21 Thread Brad Smith
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