in reply to Re: Returns from using system function
in thread Returns from using system function

Thank you for replying...
The thing that confused me initially was that system() was returning a non zero number - namely 256 which from reading about system() really means 1 so I thought by checking what the value of $! was that would tell me what errno 1 is. If that is not the case then how do I figure out what errno 1 is? and is it possible for you to tell why that kind of error might be happening?
Thanks again, Kalimeister
  • Comment on Re: Re: Returns from using system function

Replies are listed 'Best First'.
Re: Re: Re: Returns from using system function
by chromatic (Archbishop) on Nov 16, 2001 at 05:13 UTC
    To figure out what the error numbers are, find and read errno.h on your box. It's in /usr/include/asm/ for me. The Errno module may or may not help you.
      Ok, Thank you for the guidance. Sorry about the basic questions but I am quite new to perl, so... I checked it out and apparantly the errno is EPERM, which unfortunately means absolutely nothing to me. Any more help out there?
      Thank you kindly! Kalimeister
        The manpage for errno on my box listed several of the more common constants, with brief explanations. A good OS-level C tutorial may go into more detail. I'd check Google. (EPERM means "operation not permitted", though.)