CLASS man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

CLASS(3)	      User Contributed Perl Documentation	      CLASS(3)

NAME
       CLASS - Alias for __PACKAGE__

SYNOPSIS
	 package Foo;
	 use CLASS;

	 print CLASS;		       # Foo
	 print "My class is $CLASS\n"; # My class is Foo

	 sub bar { 23 }

	 print CLASS->bar;     # 23
	 print $CLASS->bar;    # 23

DESCRIPTION
       CLASS and $CLASS are both synonyms for __PACKAGE__.  Easier to type.

       $CLASS has the additional benefit of working in strings.

NOTES
       CLASS is a constant, not a subroutine call.  $CLASS is a plain
       variable, it is not tied.  There is no performance loss for using CLASS
       over __PACKAGE__ except the loading of the module. (Thanks Juerd)

AUTHOR
       Michael G Schwern <schwern@pobox.com>

LICENSE
       This program is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

       See <http://www.perl.com/perl/misc/Artistic.html>

SEE ALSO
       perlmod(1)

perl v5.14.2			  2006-10-10			      CLASS(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net