(1)
#! c:perl/bin/perl  → #! c:/perl/bin/perl #c:のあとの"/"が抜けている。

(2)
# カウント数の整形
sprinyf → sprintf #記述ミス