[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Sheflug] Slightly OT :perl file exists test
Can anyone provide me with a couple of lines of perl to test whether a file
exists or not please. I think I could work it by doing an "open or die" but
I seem to remember this wasn't a very efficient way of doing it. I'm
editing the cgi scripts for Dansguardian on IPCop so that links to edit the
"included" files are presented at the bottom of each "edit file" page.
Thnaks
Chris Johnson
(No not that one, the other one!)
(running SUSE 9, 512MB PIII 600 (ish))
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.677 / Virus Database: 439 - Release Date: 04/05/2004
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.