in reply to running files from other directories

Put the directory in your $PATH or give system the full path to the script.

system '/path/to/PDFtoHTML/pdftohtml', '/some/path/to/file.pdf' and die $?;

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: running files from other directories
by Tanktalus (Canon) on Apr 17, 2005 at 01:28 UTC

    To add to this - I usually use the full path or a relative path (I hate modifying the PATH). I find that FindBin and File::Spec are incredibly useful for this.

    use FindBin; use File::Spec; use lib File::Spec->catdir($FindBin::Bin, 'lib'); # get modules from t +he lib subdirectory under this perl script #... my $exe = File::Spec->catfile($FindBin::Bin, File::Spec->updir(), qw(PDFtoHTML pdftohtml)); system($exe, $pdffile) == 0 or do { # handle system error. }