NAME
HackaMol::ExeRole -
VERSION
version 0.00_18
DESCRIPTION
This role adds executables/commands for running external programs. This is still a work in progress, and it will probably change (suggestions and help very much welcome!). The goal is to reduce the amount code required for building interfaces to external programs to be run on inputs to generate output in some directory that may be temporary... or not. Of course, exes do all sorts of things where other files may be written. Requirements (e.g. a method that tests functionality) for interfaces are still under development. Considering the trickiness of this sort of abstraction, it will cowardly left to the extensions to figure out. Recommendation: Capture::Tiny
METHODS
exists_exe
return 1 if exe exists, carp warning and return 0 if exe does not exist
ATTRIBUTES
command
isa Str that is rw
to be constructed from exe, exe_endops, in_fn, out_fn, etc. Then run and captured, which is left to scripts/interfaces
exe
isa Str that is rw
the program to be run. $self->command($self->exe . " < " . $self->in_fn . " > " . $self->out_fn);
exe_endops
isa Str that is rw
options to be catenated to the end of the exe. For those command line tools that use options after input filename
AUTHOR
Demian Riccardi <demianriccardi@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Demian Riccardi.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.