Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 romping around the Monastery: (8)
As of 2015-07-06 23:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (85 votes), past polls