i can run successfully without the @totalcosts array. There is a syntactic error in there which i cannot find outsub save_button { open WRITEFILE , ">>$time.txt" or die "write error\n"; my $format = ( " %10s\n" x @totalexpenses .%10s\n" x @totalexpenses ) +; printf WRITEFILE $format, @totalexpenses , @totalcosts; close WRITEFILE; }
In reply to printf syntac by props
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |