if (-f $test) { print $test "It's a file"; }