⭐ in reply to How do I get both the return value and text? backticks vs. system()
open P,"command |" or die "error running command $!"; my @data=<p>; close P; my $exit_value=$? >> 8; [download]