Skip to content

Instantly share code, notes, and snippets.

@yukidarake
Created April 1, 2014 11:44
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 yukidarake/9912359 to your computer and use it in GitHub Desktop.
Save yukidarake/9912359 to your computer and use it in GitHub Desktop.
標準エラー出力を変数に入れるには?
#!/usr/bin/env perl
use strict;
use warnings;
use IPC::Cmd qw(run_forked);
my $err = run_forked('ls')->{stderr};
print $err;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment