in reply to Inappropriate ioctl for device using Phi.pm on system call
You need to find out what was in the variable $phi when then system command was run on line 62. That is the program that is generating the error.