Re: missing values from files

2007-08-02 Thread Chas Owens
On 8/1/07, Irenta <[EMAIL PROTECTED]> wrote: snip > > >printf (" %6.1f",$fcontentt); > > > > "Use of uninitialized value in printf" means that the value of $fcontentt is > > undef. snip close(GFDLU,GFDLV,GFDLH,GFDLR,GFDLT,GFDLP,LATI,LONI,U10M,V10M,ALLF) > > > > close() can only close *

Re: missing values from files

2007-08-02 Thread Irenta
On 31 jul, 18:36, [EMAIL PROTECTED] (John W. Krahn) wrote: > Irenta wrote: > > > ok it started working and now that I run it in another computer is > > doing the same thing. I added -w at the top and it is giving me the > > following errors: > > -w will give you warnings not errors. > > > Use of un

Re: missing values from files

2007-07-31 Thread John W. Krahn
Irenta wrote: ok it started working and now that I run it in another computer is doing the same thing. I added -w at the top and it is giving me the following errors: -w will give you warnings not errors. Use of uninitialized value in division (/) at ./filegroupfix1_1000.txt line 133, line

Re: missing values from files

2007-07-31 Thread Irenta
On Jul 30, 3:27 pm, [EMAIL PROTECTED] (Rob Dixon) wrote: > Chas Owens wrote: > > On 7/30/07, John W. Krahn <[EMAIL PROTECTED]> wrote: > >> Chas Owens wrote: > >>> On 7/30/07, Isha M. Renta <[EMAIL PROTECTED]> wrote: > The 13 is the counter for the $inittime array (which actually have 13 >

Re: missing values from files

2007-07-30 Thread Rob Dixon
Chas Owens wrote: On 7/30/07, John W. Krahn <[EMAIL PROTECTED]> wrote: Chas Owens wrote: On 7/30/07, Isha M. Renta <[EMAIL PROTECTED]> wrote: The 13 is the counter for the $inittime array (which actually have 13 numbers and not 15 as it seems) and the 3600 is the number of lines in all the fil

Re: missing values from files

2007-07-30 Thread Irenta
Thanks it worked! YAY! On Jul 30, 12:11 pm, [EMAIL PROTECTED] (Chas Owens) wrote: > On 7/30/07, Isha M. Renta <[EMAIL PROTECTED]> wrote:> The 13 is the counter > for the $inittime array (which actually have 13 > > numbers and not 15 as it seems) and the 3600 is the number of lines in all > > the

Re: missing values from files

2007-07-30 Thread Mr. Shawn H. Corey
Chas Owens wrote: No, that is almost always better written as for my $element (@array) {} You should only use a range if you want to iterate a specific number of times or you want to iterate over that range. Using the position of last the last element in an array is a big clue that you really

Re: missing values from files

2007-07-30 Thread Chas Owens
On 7/30/07, John W. Krahn <[EMAIL PROTECTED]> wrote: > Chas Owens wrote: > > On 7/30/07, Isha M. Renta <[EMAIL PROTECTED]> wrote: > >> The 13 is the counter for the $inittime array (which actually have 13 > >> numbers and not 15 as it seems) and the 3600 is the number of lines in all > >> the files

Re: missing values from files

2007-07-30 Thread John W. Krahn
Chas Owens wrote: On 7/30/07, Isha M. Renta <[EMAIL PROTECTED]> wrote: The 13 is the counter for the $inittime array (which actually have 13 numbers and not 15 as it seems) and the 3600 is the number of lines in all the files. All the files have 3600 lines. Isha snip Then you have an off-by-o

Re: missing values from files

2007-07-30 Thread Chas Owens
On 7/30/07, Isha M. Renta <[EMAIL PROTECTED]> wrote: > The 13 is the counter for the $inittime array (which actually have 13 > numbers and not 15 as it seems) and the 3600 is the number of lines in all > the files. All the files have 3600 lines. > > Isha snip Then you have an off-by-one error. Yo

Re: missing values from files

2007-07-29 Thread Isha M. Renta
The 13 is the counter for the $inittime array (which actually have 13 numbers and not 15 as it seems) and the 3600 is the number of lines in all the files. All the files have 3600 lines. Isha On 7/30/07, Prabu Ayyappan <[EMAIL PROTECTED]> wrote: > > Hi Isha, > > > This may not help you. But some

Re: missing values from files

2007-07-29 Thread Prabu Ayyappan
Hi Isha, This may not help you. But some sort of debugging in your logic. for($j=0;$j<=13,$j++) for($i=0;$i<3600;$i++) What is this 13 and 3600 ? is this the no of lines in the file ?. Print and see the $#inittime $#lgfdlr $#U10m2 $#V10m2. So that they all have th

Re: missing values from files

2007-07-29 Thread Irenta
On Jul 29, 7:08 pm, [EMAIL PROTECTED] (Irenta) wrote: > Hello all! > > I wrote a script that reads data from different files and put it all > together in one new file in columns. Once I open the new file, I > noticed that all data from all files is read, but it starts putting > zeros in the last ro

Re: missing values from files

2007-07-29 Thread Paul Lalli
On Jul 29, 7:08 pm, [EMAIL PROTECTED] (Irenta) wrote: > Hello all! > > I wrote a script that reads data from different files and put it all > together in one new file in columns. Once I open the new file, I > noticed that all data from all files is read, but it starts putting > zeros in the last ro

Re: missing values from files

2007-07-29 Thread Jeff Pang
--- Irenta <[EMAIL PROTECTED]> wrote: > Hello all! > > I wrote a script that reads data from different > files and put it all > together in one new file in columns. Once I open the > new file, I > noticed that all data from all files is read, but it > starts putting > zeros in the last rows from