summaryrefslogtreecommitdiff
path: root/pod/perlop.pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-07-22 11:20:35 +0200
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-07-22 11:47:57 +0200
commit678ae90b5bfdcb408a7a5c2767d230d736624a6c (patch)
treedc6782e9ebf59c86c12095de348cae83397e5ed4 /pod/perlop.pod
parent16f708c9bc0dc48713b200031295a40bed83bbfc (diff)
downloadperl-678ae90b5bfdcb408a7a5c2767d230d736624a6c.tar.gz
Remove !!! and ??? operators
Those were adding non backwards compatible syntax, unlike "...", as pointed out in bug #67646.
Diffstat (limited to 'pod/perlop.pod')
-rw-r--r--pod/perlop.pod29
1 files changed, 5 insertions, 24 deletions
diff --git a/pod/perlop.pod b/pod/perlop.pod
index e6774303ee..23f62e09ab 100644
--- a/pod/perlop.pod
+++ b/pod/perlop.pod
@@ -813,14 +813,11 @@ between keys and values in hashes, and other paired elements in lists.
%hash = ( $key => $value );
login( $username => $password );
-=head2 Yada Yada Operators
-X<...> X<... operator> X<!!!> X<!!! operator> X<???> X<??? operator>
-X<yada yada operator>
+=head2 Yada Yada Operator
+X<...> X<... operator> X<yada yada operator>
-The yada yada operators are placeholders for code. They parse without error,
-but when executed either throw an exception or a warning.
-
-The C<...> operator takes no arguments. When executed, it throws an exception
+The yada yada operator (noted C<...>) is a placeholder for code.
+It parses without error, but when executed it throws an exception
with the text C<Unimplemented>:
sub foo { ... }
@@ -828,23 +825,7 @@ with the text C<Unimplemented>:
Unimplemented at <file> line <line number>.
-The C<!!!> operator is similar, but it takes one argument, a string to use as
-the text of the exception:
-
- sub bar { !!! "Don't call me, Ishmael!" }
- bar();
-
- Don't call me, Ishmael! at <file> line <line number>.
-
-The C<???> operator also takes one argument, but it emits a warning instead of
-throwing an exception:
-
- sub baz { ??? "Who are you? What do you want?" }
- baz();
- say "Why are you here?";
-
- Who are you? What do you want? at <file> line <line number>.
- Why are you here?
+It takes no argument.
=head2 List Operators (Rightward)
X<operator, list, rightward> X<list operator>