in reply to Illegal seek error for system()

Sounds to me like you are looking at $! after system. Don't. Look at $? instead.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: Illegal seek error for system()
by P0w3rK!d (Pilgrim) on Jul 18, 2001 at 19:28 UTC
    Actually..I am saving the error in a logfile as:

    system() failed: $? $!

    Why am I getting these errors? Where can I look them up?
      $! isn't reliable after a system(). The 512 means that the called program returned 512>>8, or 2. So look at the called program's manual page or other documentation, and find out what would make it exit with an error 2.
        I switched over to using exec for now.
        I have received a numerous amount of errors using system().
        Thank you.