Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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


Comment on Re: Running an external command
Select or Download Code

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 examining the Monastery: (5)
As of 2014-09-20 00:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (151 votes), past polls