X
Xenos
Do file tests only works with statements of the form:
do_something if -e filename;
can't I do something like:
if -e filename
{
do several things here
}
It doesn't see to like this. What is the best way to do more than on
statement on a file test if? This seems klunky:
my exists = 0;
exists = 1 if -e filename;
if (exists)
{
do stuff
}
Thanks,
DrX
do_something if -e filename;
can't I do something like:
if -e filename
{
do several things here
}
It doesn't see to like this. What is the best way to do more than on
statement on a file test if? This seems klunky:
my exists = 0;
exists = 1 if -e filename;
if (exists)
{
do stuff
}
Thanks,
DrX