props has asked for the wisdom of the Perl Monks concerning the following question:
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; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: printf syntac
by ikegami (Patriarch) on Sep 26, 2007 at 21:05 UTC | |
|
Re: printf syntac
by FunkyMonk (Bishop) on Sep 26, 2007 at 22:15 UTC | |
by props (Hermit) on Sep 27, 2007 at 06:57 UTC | |
by ikegami (Patriarch) on Sep 28, 2007 at 16:58 UTC | |
by props (Hermit) on Sep 29, 2007 at 09:48 UTC | |
by FunkyMonk (Bishop) on Sep 29, 2007 at 10:12 UTC | |
| |
by graff (Chancellor) on Sep 30, 2007 at 00:27 UTC |