[EMAIL PROTECTED] wrote:
--- [EMAIL PROTECTED] wrote:I am currently trying to write a Perl program in a Solaris 9 environment I am trying to process a list of variables with UNIX environment variables embedded in them of the form $dir_to_check = "$ENV_VAR1/some_dir/$ENV_VAR2/another_dir"; and I am trying to find if another_dir exists, so I have a line of code that tries to do something like this: if (-e $dir_to_check) { do some stuff }It's `-d dir` for directory exist test. `-e` is for file exist test.
Not really. It's -e for item exists -d for item exists and is a directory -f for item exists and is a plain file Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/
