@@ -1278,6 +1278,21 @@ may be outside of the new root.
12781278
12791279Portability issues: L<perlport/chroot>.
12801280
1281+ =item class NAMESPACE
1282+
1283+ =item class NAMESPACE VERSION
1284+
1285+ =item class NAMESPACE BLOCK
1286+
1287+ =item class NAMESPACE VERSION BLOCK
1288+
1289+ =for Pod::Functions declare a separate global namespace that is an object class
1290+
1291+ Declares the BLOCK or the rest of the compilation unit as being in the given
1292+ namespace, which implements an object class. This behaves similarly to
1293+ L<C<package>/package NAMESPACE>, except that the newly-created package behaves
1294+ as a class.
1295+
12811296=item close FILEHANDLE
12821297X<close>
12831298
@@ -2739,6 +2754,15 @@ A special token that returns the name of the file in which it occurs.
27392754It can be altered by the mechanism described at
27402755L<perlsyn/"Plain Old Comments (Not!)">.
27412756
2757+ =item field VARNAME
2758+ X<field>
2759+
2760+ =for Pod::Functions declare a field variable of the current class
2761+
2762+ Declares a new field variable within the current class. Methods and
2763+ L<C<ADJUST>/BLOCK> blocks of the class will have access to this variable as
2764+ if it was a lexical in scope at that point.
2765+
27422766=item fileno FILEHANDLE
27432767X<fileno>
27442768
@@ -4303,6 +4327,16 @@ or to force an anon hash constructor use C<+{>:
43034327
43044328to get a list of anonymous hashes each with only one entry apiece.
43054329
4330+ =item method NAME BLOCK
4331+ X<method>
4332+
4333+ =item method NAME : ATTRS BLOCK
4334+
4335+ =for Pod::Functions declare a method of a class
4336+
4337+ Creates a new named method in the scope of the class that it appears within.
4338+ This is only valid inside a L<C<class>/class NAMESPACE> declaration.
4339+
43064340=item mkdir FILENAME,MODE
43074341X<mkdir> X<md> X<directory, create>
43084342
@@ -10561,4 +10595,12 @@ documented in L<perlsyn/"defer blocks">.
1056110595
1056210596=back
1056310597
10598+ =over
10599+
10600+ =item ADJUST
10601+
10602+ This class-related phaser block is documented in L<perlclass>.
10603+
10604+ =back
10605+
1056410606=cut
0 commit comments