(紧急求助)printf提示错误信息

(紧急求助)printf提示错误信息

各位大侠帮忙看看下面的printf到底是哪里出错啦。。。

77     $count = 0;
78     while($count+1 < @array)
79     {
80         if($count == 5)
81         {
82             printf OUT "$sixth\t";
83         }
84         else
85         {
86             printf OUT "$array[$count]\t";
87         }
88         $count++;
89     }
90     printf OUT "$array[$count]\n";


运行后老是报错:
Invalid conversion in printf: "%-" at /home/y/search/bin/addChannelInfo.pl line 86, <INFO> line 932.
Invalid conversion in printf: "%\011" at /home/y/search/bin/addChannelInfo.pl line 86, <INFO> line 111940.
Invalid conversion in printf: "%C" at /home/y/search/bin/addChannelInfo.pl line 86, <INFO> line 138070.
Use of uninitialized value in printf at /home/y/search/bin/addChannelInfo.pl line 86, <INFO> line 138070.
Use of uninitialized value in printf at /home/y/search/bin/addChannelInfo.pl line 86, <INFO> line 138070.
Use of uninitialized value in printf at /home/y/search/bin/addChannelInfo.pl line 86, <INFO> line 138070.
Invalid conversion in printf: "%C" at /home/y/search/bin/addChannelInfo.pl line 86, <INFO> line 138070.
Use of uninitialized value in printf at /home/y/search/bin/addChannelInfo.pl line 86, <INFO> line 138070.
Invalid conversion in printf: "%C" at /home/y/search/bin/addChannelInfo.pl line 86, <INFO> line 138070.
。。。。。。

用 print 吧。
print,printf两者一样吗?
多谢!多谢!
我是新手,第一次写,现在已经改过来了。


QUOTE:
原帖由 liulinzhu 于 2008-4-14 20:08 发表
print,printf两者一样吗?

不一样。btw,执行
perldoc -f print
perldoc -f printf
可以察看其文档。