X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/e9d89077a60de61f809018ce831b9605072266b7..98af1e142028dcf116f32636ea54f4c3e9494651:/pod/perlop.pod diff --git a/pod/perlop.pod b/pod/perlop.pod index 7cac1de..7b0b0d2 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -568,7 +568,7 @@ right operand is true, I which the range operator becomes false again. It doesn't become false till the next time the range operator is evaluated. It can test the right operand and become false on the same evaluation it became true (as in B), but it still returns true once. -If you don't want it to test the right operand till the next +If you don't want it to test the right operand until the next evaluation, as in B, just use three dots ("...") instead of two. In all other regards, "..." behaves just like ".." does. @@ -809,6 +809,39 @@ 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 X X +X + +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 +with the text C: + + sub foo { ... } + foo(); + + Unimplemented at line . + +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 line . + +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 line . + Why are you here? + =head2 List Operators (Rightward) X X