in reply to System(), writing to a new file
-Michael#!/usr/bin/perl use strict; use warnings; my $file = 'somefile.txt'; my @args = ("sort", $file); open (my $out, ">", "outputfile.txt"); print $out `@args` or die "system @args failed: $?";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: System(), writing to a new file
by Anonymous Monk on Jul 18, 2013 at 08:42 UTC | |
by cyates (Novice) on Jul 19, 2013 at 00:52 UTC | |
by zork42 (Monk) on Jul 19, 2013 at 15:05 UTC |