start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 8.66 Fcntl Chapter 8
Standard Modules
Next: 8.68 File::Basename
 

8.67 fields

Pragma that provides the ability to define class fields at compile time, by updating the %FIELDS hash in the calling package. The %FIELDS hash is set up at compile time as well; use the base pragma to copy fields from base classes, and then fields to add new fields. Lets you have objects with named fields that are as compact and fast as arrays to access. For more details, see the fields manpage and the pseudo-hash section of the perlref manpage.


Previous: 8.66 Fcntl Perl in a Nutshell Next: 8.68 File::Basename
8.66 Fcntl Book Index 8.68 File::Basename