Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: System(), writing to a new file

by zork42 (Monk)
on Jul 19, 2013 at 15:16 UTC ( #1045374=note: print w/replies, xml ) Need Help??


in reply to System(), writing to a new file

Using the sort -o flag from Anonymous Monk's post...

You might want to consider this:
my $error_message = `sort -o $outfile $infile 2>&1`
The "2>&1" bit redirects errors on STDERR to STDOUT, and the latter will be saved in $error_message.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1045374]
help
Chatterbox?
and the daffodils sway...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2016-12-04 20:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (69 votes). Check out past polls.