in reply to Re: Exec() argument format
in thread Exec() argument format

Ok, it says cannot execute - No such file or directory.
ALthough im passing in the file off command line anyway.

The ComLine.pl is executable. Im at a loss here.

I was thinking of using system() but there is no code afterwards and im printing out to a web page in anothe file so i didnt want to lock anything.

Replies are listed 'Best First'.
Re^2: Exec() argument format
by sacked (Hermit) on Jul 25, 2005 at 22:27 UTC
    As suggested by eyepopslikeamosquito above, consider using the full path to the ComLine.pl program:
    exec( '/path/to/ComLine.pl', @args ) or die "exec: $!"
    or invoke the Perl interpreter ($^X, documented in perlvar), also suggested above.

    --sacked
      Sure but both my files are in the same location. i guess the $^Xsolution is the next best bet.
        If you're on Unix, that doesn't matter unless . (dot) is in your path.