Hello Monks, I'm getting the following error message from a perl module called Phi.pm.

I can not execute the PHI test: Phi: Inappropriate ioctl for device at /biologia-scratch3/mc.martinez297/programs/Unus-master/Unus/Test/Phi.pm line 63

First, I thought it was a problem related with permissions, so I changed them. This module has read and execution permissions.

So, then I looked the line 63, and I have the following:


61 chdir "$aln.phi";
62 system "$phi -f '$aln' &>$aln.phi/Phi.out";
63 LOGDIE "I can not execute the PHI test: $phi:\n$!" unless $?==0;
64 -s "Phi.log" or LOGDIE "PHI test ($phi -f '$aln' &>$aln.phi/Phi.out) returned an empty output, please check '$aln.phi/Phi.out' to inspect the reason s.";

I read the recomendations in http://www.perlmonks.org/?node_id=589324 , and they recommended to erase $! but I don't know what to do with $?==0, since $! and $? are "different types of error conditions"(http://perldoc.perl.org/perlvar.html)

However, I still don't understand what is happening with these variables.

I'm new in Perl, so I'll appreciate the help


In reply to Inappropriate ioctl for device using Phi.pm on system call by To_Bz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.