Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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.


Dave

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2016-09-28 15:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (533 votes). Check out past polls.