in reply to how does '2>&1' work ?
This enables us to inspect the output (in $capture in this case. If you want the output displayed on the screen then use system instead. If you want both then just print $captureuse strict; use warnings; my $capture = `ifconfig 2>&1`;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how does '2>&1' work ?
by wildnature (Novice) on Feb 23, 2011 at 01:50 UTC | |
by ikegami (Patriarch) on Feb 23, 2011 at 06:10 UTC | |
by wildnature (Novice) on Feb 23, 2011 at 07:19 UTC | |
by Anonymous Monk on Feb 23, 2011 at 05:01 UTC |