diff options
author | Michael G. Schwern <schwern@pobox.com> | 2002-05-04 09:17:44 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-05-04 16:54:40 +0000 |
commit | fa8a65806e20ffb61be982ce30fb168cdf5716ef (patch) | |
tree | f95962fe0e84808fb9e908909dd0698fb4421837 /lib/overload.pm | |
parent | 62cc325639f7dba953b2bb9aea6b7abcc619e617 (diff) | |
download | perl-fa8a65806e20ffb61be982ce30fb168cdf5716ef.tar.gz |
"\"\""
Message-ID: <20020504171743.GD640@blackrider>
p4raw-id: //depot/perl@16397
Diffstat (limited to 'lib/overload.pm')
-rw-r--r-- | lib/overload.pm | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/overload.pm b/lib/overload.pm index 838c91fcee..1cde64241e 100644 --- a/lib/overload.pm +++ b/lib/overload.pm @@ -333,9 +333,9 @@ The following symbols can be specified in C<use overload> directive: "**", "**=", "<<", "<<=", ">>", ">>=", "x", "x=", ".", ".=", For these operations a substituted non-assignment variant can be called if -the assignment variant is not available. Methods for operations "C<+>", -"C<->", "C<+=>", and "C<-=>" can be called to automatically generate -increment and decrement methods. The operation "C<->" can be used to +the assignment variant is not available. Methods for operations C<+>, +C<->, C<+=>, and C<-=> can be called to automatically generate +increment and decrement methods. The operation C<-> can be used to autogenerate missing methods for unary minus or C<abs>. See L<"MAGIC AUTOGENERATION">, L<"Calling Conventions for Mutators"> and @@ -355,10 +355,10 @@ arrays, C<cmp> is used to compare values subject to C<use overload>. "&", "^", "|", "neg", "!", "~", -"C<neg>" stands for unary minus. If the method for C<neg> is not +C<neg> stands for unary minus. If the method for C<neg> is not specified, it can be autogenerated using the method for -subtraction. If the method for "C<!>" is not specified, it can be -autogenerated using the methods for "C<bool>", or "C<\"\">", or "C<0+>". +subtraction. If the method for C<!> is not specified, it can be +autogenerated using the methods for C<bool>, or C<"">, or C<0+>. =item * I<Increment and decrement> @@ -382,11 +382,11 @@ C<0+>. =item * I<Boolean, string and numeric conversion> - "bool", "\"\"", "0+", + 'bool', '""', '0+', If one or two of these operations are not overloaded, the remaining ones can be used instead. C<bool> is used in the flow control operators -(like C<while>) and for the ternary "C<?:>" operation. These functions can +(like C<while>) and for the ternary C<?:> operation. These functions can return any arbitrary Perl value. If the corresponding operation for this value is overloaded too, that operation will be called again with this value. |