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 *one* filehandle so you get the warning "Useless use > > of > > a constant in void context" for all the other filehandles. snip > those "unitialized values" are assigned to the handle of the files > before the loop... does't that initialize them? snip Yes, they are initialized, but they are triggering the "Useless use of a constant in void context" warning because close only takes one file handle; the others are useless. The "Use of uninitialized value" warning is coming from your calls to printf. Some of your variables have undefined values and Perl is warning you in case that isn't what you wanted (it usually isn't). -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/