- or download this
try
{
...
{
System.out.println( ioerr.toString() );
}
- or download this
open(FH,"myFile.txt") or die "Nope : $!\n";
- or download this
die "Nope : $!\n" unless open(FH,"myFile.txt");
- or download this
if (not open FH, 'myFile.txt')
{
print STDERR "Nope : $!\n";
exit;
}
- or download this
!open FH => 'myFile.txt' == 0 && die "Nope : $!\n";