in reply to Executing a program with in a perl script, and capturing the data in two ways
Another example (backticks, as Shendal mentioned):
If you're writing short scripts or one-liners, you might man perlrun and check out the -e, -n, and -p options. In short scripts these can remove 90% of the skeleton code for you.my $answer = `/usr/local/bin/arbitrary_script_that_prints_something`; print $answer;
Alan
|
|---|