Hi there,

I am trying to figure out why the following error is happening from time to time when I am unlink'ing a file.

readline() on unopened filehandle at ./check.pl line 207.

here is the code - lines 205-207

    my $filename = "$outputdir/$device.$configuration_file_ext";
    print "filename: $filename\n";
    unlink ($filename) if (-e $filename);


Cheers,

Noah

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to