summaryrefslogtreecommitdiff
path: root/pod/perlsyn.pod
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-01-05 23:05:16 -0800
committerFather Chrysostomos <sprout@cpan.org>2012-01-05 23:26:44 -0800
commit9dba9ce04d4bf5b7b615d55cd037bbbea81d008a (patch)
tree6bda88943ccf4a2432db6973321158b922ffbc2c /pod/perlsyn.pod
parentb65972750fa3efbb092421583feea1e3263028ad (diff)
downloadperl-9dba9ce04d4bf5b7b615d55cd037bbbea81d008a.tar.gz
perlsyn: Correct ... example
Diffstat (limited to 'pod/perlsyn.pod')
-rw-r--r--pod/perlsyn.pod4
1 files changed, 2 insertions, 2 deletions
diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod
index 23906866af..b8eab4d5ad 100644
--- a/pod/perlsyn.pod
+++ b/pod/perlsyn.pod
@@ -716,10 +716,10 @@ When Perl 5.12 or later encounters an ellipses statement, it parses this
without error, but if and when you should actually try to execute it, Perl
throws an exception with the text C<Unimplemented>:
- use v5.12
+ use v5.12;
sub unimplemented { ... }
eval { unimplemented() };
- if ($@ eq "Unimplemented") {
+ if ($@ =~ /^Unimplemented at /) {
say "I found an ellipsis!";
}