From: Rudolf Leermakers Date: Tue, 6 Jan 2015 13:22:44 +0000 (+0100) Subject: Minor documentation fix; assign actual strings, not hashrefs. X-Git-Tag: v0.23~11^2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a7f27f9236285485b397ba30c84dafdca0c74d77;p=p5sagit%2FTry-Tiny.git Minor documentation fix; assign actual strings, not hashrefs. --- diff --git a/lib/Try/Tiny.pm b/lib/Try/Tiny.pm index 73c2b16..4e8e06d 100644 --- a/lib/Try/Tiny.pm +++ b/lib/Try/Tiny.pm @@ -217,8 +217,8 @@ context or the empty list in list context. The following examples all assign C<"bar"> to C<$x>: my $x = try { die "foo" } catch { "bar" }; - my $x = try { die "foo" } || { "bar" }; - my $x = (try { die "foo" }) // { "bar" }; + my $x = try { die "foo" } || "bar"; + my $x = (try { die "foo" }) // "bar"; my $x = eval { die "foo" } || "bar";