in reply to Re^4: Need to print bucket and filename which is uploaded on S3 storage
in thread Need to print bucket and filename which is uploaded on S3 storage
Yes.
But you have no error checking here:
my $result = $s3->buckets();
If $result is not defined, which happens when there is an error, you ignore that.
Instead of ignoring that, check the errors there. This is documented in Amazon::S3. Maybe the following helps:
my $result = $s3->buckets(); if( ! $result ) { warn "There was an error when looking at the existing buckets:"; warn join " - ", $s3->err, $s3->errstr; die "Cannot continue."; }; ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Need to print bucket and filename which is uploaded on S3 storage
by coolsaurabh (Acolyte) on Aug 21, 2019 at 10:09 UTC | |
by hippo (Archbishop) on Aug 21, 2019 at 10:21 UTC | |
by coolsaurabh (Acolyte) on Aug 21, 2019 at 10:57 UTC |