diff options
author | Paul "LeoNerd" Evans <leonerd@leonerd.org.uk> | 2023-02-08 18:10:15 +0000 |
---|---|---|
committer | Paul "LeoNerd" Evans <leonerd@leonerd.org.uk> | 2023-02-10 14:37:25 +0000 |
commit | 69953ef3f17b02d83fb922e406db19fbd39f6fa3 (patch) | |
tree | b602ce1b6f4bf5bedb2edf4744baa6ac4cdede56 /pod | |
parent | 185929a010d6025e1b146d410a0f1581cc336b75 (diff) | |
download | perl-69953ef3f17b02d83fb922e406db19fbd39f6fa3.tar.gz |
Initial attack at parsing attribute syntax for class blocks; though no attrs are yet defined
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perldiag.pod | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 53354d1741..91455c9cd1 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -1760,6 +1760,15 @@ is better written as simply itself, perhaps preceded by a backslash for non-word characters. Doing it the way you did is not portable between ASCII and EBCDIC platforms. +=item Class attribute %s requires a value + +(F) You specified an attribute for a class that would require a value to +be passed in parentheses, but did not provide one. Remember that +whitespace is B<not> permitted between the attribute name and its value; +you must write this as + + class Example::Class :attr(VALUE) ... + =item class is experimental (S experimental::class) This warning is emitted if you use the C<class> @@ -7072,6 +7081,11 @@ in your Perl script (or eval) near the specified column. Perhaps you tried to run a compressed script, a binary program, or a directory as a Perl program. +=item Unrecognized class attribute %s + +(F) You attempted to add a named attribute to a C<class> definition, but +perl does not recognise the name of the requested attribute. + =item Unrecognized escape \%c in character class in regex; marked by S<<-- HERE> in m/%s/ |