in reply to capture STDOUT without printing to screen
I'm a little out of practice so beware, but hopefully it's close.my @output_lines_array = `/path/to/your_executable`; foreach my $line (@output_lines_array) { if (/^No. of sequences \(letters\): ([\d,])\s/) { print "No. of sequences = $1\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: capture STDOUT without printing to screen
by k99ja04 (Initiate) on Dec 03, 2004 at 09:02 UTC | |
by hmerrill (Friar) on Dec 07, 2004 at 12:47 UTC |