;)
-Original Message-
From: Adam Theo [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 17:59
To: Perl Beginners
Subject: -d & other file tests
Hello, Adam Theo here;
i was wondering if there is something i must declare to use file tests
such as -d and -e? i have code which
On Jul 5, Adam Theo said:
>sub check_source {
> my($source_dir, $source_file) = @_;
> print("Checking $source_dir/$source_file.\n");
> if ($source_file =~ /^\./) {
> print("Can't open file '$source_dir/$source_file':
> System file.\n");
> }
> elsif (-d $source_fi
Hello, Adam Theo here;
i was wondering if there is something i must declare to use file tests
such as -d and -e? i have code which i am working on, and i need to
check to see if a file is a directory. if it is, i run a subroutine.
i recall having used file tests before, and successfully. i do