See, in your first set of code it will display output on screen instead of writing into file. Second way is good to use.
In reply to Re: Correct way to capture command output to a file in Perl.
by bimleshsharma
in thread Correct way to capture command output to a file in Perl.
by perl514
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |