/usr/share/doc/libbusiness-paypal-api-perl/examples/search-transactions.pl is in libbusiness-paypal-api-perl 0.74-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #!/usr/bin/perl
use strict;
use warnings;
use feature qw( say );
use Data::Printer;
use lib 'eg/lib';
use Example::TransactionSearcher;
my $searcher = Example::TransactionSearcher->new_with_options();
my $txns = $searcher->search;
unless ( @{$txns} ) {
say 'no results';
exit;
}
foreach my $txn ( @{$txns} ) {
# remove undef values
for my $field ( keys %{$txn} ) {
delete $txn->{$field} unless $txn->{$field};
}
p $txn;
}
say scalar @{$txns} . ' results found';
|