in reply to Execution fails from within Perl; succeeds outside Perl

When you say "the command fails", do you mean, nothing happens? Does the die statement from the open mention anything? Nothing in any of the special error variables?

Is the path for the command fully spelt out in the $command variable>

Before you think that one of the modules you mentioned is overloading system or open, did you try calling the $command using system or open without any modules loaded?

-imran

  • Comment on Re: Execution fails from within Perl; succeeds outside Perl

Replies are listed 'Best First'.
Re^2: Execution fails from within Perl; succeeds outside Perl
by swampyankee (Parson) on Mar 13, 2006 at 19:54 UTC
    When you say "the command fails", do you mean, nothing happens? Does the die statement from the open mention anything? Nothing in any of the special error variables?

    No, the command line is executed; the command fails with an internal error. I've done more checking and found the problem is related to tieing the file that's being modified. Unfortunately, the untie command gives me an error: untie attempted while 1 inner references still exist. Since in my toy test script, all I do with File::Tie is tie a file to the array and immediately untie it, I'm slightly confused. Still.

    emc

    " When in doubt, use brute force." — Ken Thompson