Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Running an external command

by davido (Archbishop)
on Apr 26, 2012 at 04:31 UTC ( #967233=note: print w/replies, xml ) Need Help??

in reply to Running an external command

I haven't read your other question. But you're about half-way there. If @output holds the data that you want saved, you next need to do something like this:

open my $out_fh, '>', 'filename.txt' or die $!; print $out_fh @output; close $out_fh or die $!;

That's a simple means. But you'll probably need to modify it to better suit your needs, which weren't really fully described in this thread.

perlintro will take about a half hour to read. One of the sections in that document contains a brief introduction to file input and output.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2016-10-25 14:19 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (320 votes). Check out past polls.