in reply to calling .EXE through Perl script

On the face of it your syntax is fine. Is parser.exe on the search path or in teh current directory?

As a test you may care to try `notepad.exe` instead.

You can iterate over the files in a folder like this:

use strict; use warnings; my $scan; opendir $scan, '.'; while (my $entry = readdir ($scan)) { next if ! -f $entry; # Skip if not a file print "$entry\n"; }

DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^2: calling .EXE through Perl script
by Anonymous Monk on May 11, 2006 at 09:29 UTC
    Thanks for quick reply. Parser.exe is in current directory. I wanted to send the file name to my C program so that it can execute further opening that file. I am not able to send the file name to my C pgm now.