NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
abstract the abstract (Score:2)
cmd => argv[0]
args => [argv[1..]]
env => {...}
cwd => directory where to cd in and out of
stdin => file
stdout => file
etc.
Shades of t/test.pl:runperl(), don't you think?
Re:abstract the abstract (Score:2)
# Equivalent to 'cd $dir && $(TESTF) $(FIRST_MAKEFILE) && $(MAKE) clean'
for my $dir (@{$self->{DIR}}) {
my $subclean = $self->oneliner(sprintf 'CODE', $dir);
chdir '%s'; system '$(MAKE) clean' if -f '$(FIRST_MAKEFILE)';
CODE