writing array to file?
- From: elroyerni <davechunny@xxxxxxxxx>
- Date: Tue, 21 Aug 2007 16:40:57 -0000
Hi -
I have a array that i initialize for using this in my perl script:
my @array_data = qx(cat /home/dchun/logs/$date/stat.log|grep "System
took"|cut -c 56-62);
I know this is really simple but I can't seem to figure it out. How do
i write this array to a text file in my home directory? I just want to
save it for later. If the file already exists, i just want to write
over it.
I tried using a system command.. but that didn't work. Any suggestions
on a simple way to do this?
system `cat /home/ssi9gwy/logs/$date/rco.log|grep "OTS took"|cut -c
56-62 > /u/dchun/rco_stats/$date.rco_stat.log`;
.
- Follow-Ups:
- Re: writing array to file?
- From: Jim Gibson
- Re: writing array to file?
- From: Paul Lalli
- Re: writing array to file?
- Prev by Date: Re: Symrefs (was: how to call sub by value in variable)
- Next by Date: Join lines
- Previous by thread: FAQ 8.39 How do I set CPU limits?
- Next by thread: Re: writing array to file?
- Index(es):
Relevant Pages
|