Perl
Support
The Perl SDK is maintained and supported by the Sentry community. Learn more about the project on GitHub.
Installation
Sentry::Raven
is distributed via CPAN:
Copied
cpanm Sentry::Raven
Configuring the SDK
Create a new instance of the SDK:
Copied
my $sentry = Sentry::Raven->new( sentry_dsn => 'https://examplePublicKey@o0.ingest.sentry.io/0' );
Reporting Errors
The easiest way to capture errors is to execute code within a block:
Copied
# capture all errors
$sentry->capture_errors( sub {
..do something here..
} );
For more information, see the CPAN documentation.