"files" on * nix type systems is a very abstract concept.
They can be disk areas organized by the file system, but they can also be a network connection, a bit of shared memory, a buffer output from another process, screen, or keyboard.
In order for perl to be really useful, it reflects this model very closely and does not process files, emulating magnetic tape, as 4gls does.
Thus, he tried to perform the “IOCTL” operation “open for writing” in a file descriptor that does not allow writing operations that are unacceptable IOCTL operations for this device / file.
The easiest thing to do is stick to the or die 'Cannot open $myfile' statement at the end of your discovery, and you can choose your own meaningful message.
James Anderson Oct 22 '09 at 6:07 2009-10-22 06:07
source share