$i++;
$temp = sprintf "%02d", $i;
$file = "$note/$temp$ex";

連番でファイルを保存しようとやってみたのだが、
うまくいかない。。。