summaryrefslogtreecommitdiff
path: root/pod/perlsyn.pod
diff options
context:
space:
mode:
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!";
}