in reply to Inconsistent system call from backticks vs system()

Does $cmd use an absolute path, or relative? If relative, it probably means that the program isn't in $ENV{PATH}. You're probably better off using an absolute path anyway.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

Note: All code is untested, unless otherwise stated

Replies are listed 'Best First'.
Re: Re: Inconsistent system call from backticks vs system()
by Tanalis (Curate) on Jul 01, 2003 at 13:51 UTC
    Absolute. That was something I thought about, which is why I tried playing with chdir, just in case.

    It literally seems like an inconsistency in the way system and the backticks handle the system call - as I said, if I substitute one for the other, it all works happily.

    -- Foxcub
    #include www.liquidfusion.org.uk