Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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.

Comment on Re: System(), writing to a new file
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1045374]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (16)
As of 2015-11-30 20:46 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (783 votes), past polls