projects
/
p5sagit/Try-Tiny.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
af5d340
)
Add missing semicolon in docs
Mark Stosberg [Tue, 9 Jul 2013 21:02:48 +0000 (17:02 -0400)]
This looked wrong without a semicolon, so I tested it. Sure enough, it was a syntax error without it, and ran as expected with it.
lib/Try/Tiny.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Try/Tiny.pm
b/lib/Try/Tiny.pm
index
0da8660
..
134ad81
100644
(file)
--- a/
lib/Try/Tiny.pm
+++ b/
lib/Try/Tiny.pm
@@
-493,7
+493,7
@@
Instead, you should capture the return value:
my $success = try {
die;
1;
- }
+ };
return unless $success;
say "This text WILL NEVER appear!";