The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

CLASS - Alias for __PACKAGE__

SYNOPSIS

  package Foo;
  use CLASS;

  print CLASS;          # Foo

  sub bar { 23 }

  print CLASS->bar;     # 23

DESCRIPTION

CLASS is a synonym for __PACKAGE__. Its easier to type.

TODO

I tried to provide a $CLASS for easier use in strings, but it doesn't quite evaluate right when used as a function argument.

AUTHOR

Michael G Schwern <schwern@pobox.com>

SEE ALSO

perlmod(1)