in reply to calling .EXE through Perl script
Another way to list all the files in a directory is with glob. It might be a good idea to filter that list so that only regular files are taken.
Is your problem as simple as calling backticks in void context, without collecting the result?my @files = grep { -f } glob '/path/to/files/*'; for my $file (@files) { my $output = `/path/to/parser.exe $file`; # do stuff with $output }
System programs can also be launched with system, open, or fork-exec. Which you choose depends on what you want to do with them.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |