in reply to Re: Inappropriate I/O control operation (Updated)
in thread Inappropriate I/O control operation

Thanks for the suggestion. I did print $! in the statement underneath the open in the original script. But I modified the open per your suggestion. It didn't die on any of the opens but still gave the error in $! in the following line. Then I tried reading and printing the first line of each file and it worked. Strange.
  • Comment on Re^2: Inappropriate I/O control operation

Replies are listed 'Best First'.
Re^3: Inappropriate I/O control operation
by dave_the_m (Monsignor) on Sep 26, 2017 at 17:07 UTC
    $! is only meaningful after an error. Its value after a successful open is unspecified and could be anything.

    Dave.