The above code is working but my question is, is this the best way to check?if (open(FH, "C:/web/test/test.dat")) { while (<FH>) { print } close FH or die "Cannot close: $!"; } else { print "No go!!!!"; }
In reply to if (open(FH, $path)) { ? by bkiahg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |