------------------------------------------------ On Thu, 24 Jul 2003 23:00:17 +0800, "LI NGOK LAM" <[EMAIL PROTECTED]> wrote:
> if ( -d $path ) { print "Directory" } > elsif ( -f $path ) { print "File" } > else { print "Not exist" } > "Not exist" is misleading, just because a file is not a 'plain' file or a 'directory' does *NOT* indicate non-existence. Existence should be checked explicitly with the -e operator. http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]