Skip to content

Instantly share code, notes, and snippets.

@dagolden
Created September 27, 2012 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dagolden/3795436 to your computer and use it in GitHub Desktop.
Save dagolden/3795436 to your computer and use it in GitHub Desktop.
use Capture::Tiny qw/capture/;
my ($stdout, $stderr) = capture { system($^X, "bin/mpath", "strict") };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment