5 B<santander.pl FILE.xls>
7 B<santander.pl> parses F<FILE.xls> and outputs statements and balance.
9 =head1 COPYRIGHT AND LICENSE
11 Copyright (C) 2015 Thadeu Lima de Souza Cascardo <cascardo@cascardo.eti.br>
13 This program is free software; you can redistribute it and/or modify it under
14 the terms of the GNU General Public License; either version 2 of the License,
15 or (at your option) any later version.
17 This program is distributed in the hope that it will be useful, but WITHOUT
18 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19 FOR A PARTICULAR PURPOSE.
27 use Finance::Bank::BR::Santander::Spreadsheet;
30 print STDERR "santander.pl FILE.xls\n";
34 my $spreadsheet = Finance::Bank::BR::Santander::Spreadsheet->new($ARGV[0]);
36 my $balance = $spreadsheet->balance;
38 my $data = $spreadsheet->statement;
40 foreach my $transaction (@{$data}) {
41 say "$transaction->{date}, $transaction->{name}, $transaction->{extra}, $transaction->{value}, $transaction->{balance}";