Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Commit

Permalink
few documentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
msztolcman committed May 25, 2012
1 parent f7fb24e commit 6bb3a11
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions Try-Tiny-SmartCatch/lib/Try/Tiny/SmartCatch.pm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $Carp::Internal{+__PACKAGE__}++;

=head1 NAME
Try::Tiny::SmartCatch - Try::Tiny with some additional features
Try::Tiny::SmartCatch - lightweight Perl module for powerful exceptions handling
=head1 VERSION
Expand Down Expand Up @@ -87,6 +87,8 @@ handler, not surrounding function call.
If you want to read about other assumptions, read about our predecessor: L<Try::Tiny>.
More documentation for C<Try::Tiny::SmartCatch> is at package home: L<http://github.com/mysz/try-tiny-smartcatch>
=head1 EXPORT
All functions are exported by default using L<Exporter>.
Expand Down Expand Up @@ -184,7 +186,7 @@ sub try ($;@) {
if ($failed) {
# if we got an error, invoke the catch block.
if (scalar (@catch_when) || $catch_default) {
my ($catch_data, $catched, );
my ($catch_data, );

# This works like given($error), but is backwards compatible and
# sets $_ in the dynamic scope for the body of C<$catch>
Expand Down Expand Up @@ -299,8 +301,8 @@ sub catch_default ($;@) {

=head2 finally ($;@)
Works exactly like L<Try::Tiny> C<finally> function (OK, again, evident sub
instead of anonymous):
Works exactly like L<Try::Tiny> C<finally> function (OK, again, explicit sub
instead of implicit):
try sub {
# some code
Expand Down Expand Up @@ -371,6 +373,10 @@ package Try::Tiny::SmartCatch::Catch::When;
=over 4
=item L<https://github.com/mysz/try-tiny-smartcatch>
Try::Tiny::SmartCatch home.
=item L<Try::Tiny>
Minimal try/catch with proper localization of $@, base of L<Try::Catch::SmartCatch>
Expand All @@ -388,7 +394,7 @@ Marcin Sztolcman, C<< <marcin at urzenia.net> >>
=head1 BUGS
Please report any bugs or feature requests through the web interface at
L<https://github.com/mysz/try-tiny-smartcatch/issues>.
L<http://github.com/mysz/try-tiny-smartcatch/issues>.
=head1 SUPPORT
Expand All @@ -402,11 +408,11 @@ You can also look for information at:
=item * Try::Tiny::SmartCatch home & source code
L<https://github.com/mysz/try-tiny-smartcatch>
L<http://github.com/mysz/try-tiny-smartcatch>
=item * Issue tracker (report bugs here)
L<https://github.com/mysz/try-tiny-smartcatch/issues>
L<http://github.com/mysz/try-tiny-smartcatch/issues>
=item * Search CPAN
Expand Down

0 comments on commit 6bb3a11

Please sign in to comment.