PPI::Token::Separator - The __DATA__ and __END__ tags


PPI documentation Contained in the PPI distribution.

Index


Code Index:

NAME

Top

PPI::Token::Separator - The __DATA__ and __END__ tags

INHERITANCE

Top

  PPI::Token::Separator
  isa PPI::Token::Word
      isa PPI::Token
          isa PPI::Element

DESCRIPTION

Top

Although superficially looking like a normal PPI::Token::Word object, when the __DATA__ and __END__ compiler tags appear at the beginning of a line (on supposedly) their own line, these tags become file section separators.

The indicate that the time for Perl code is over, and the rest of the file is dedicated to something else (data in the case of __DATA__) or to nothing at all (in the case of __END__).

METHODS

Top

This class has no methods beyond what is provided by its PPI::Token::Word, PPI::Token and PPI::Element parent classes.

SUPPORT

Top

See the support section in the main module.

AUTHOR

Top

Adam Kennedy <adamk@cpan.org>

COPYRIGHT

Top


PPI documentation Contained in the PPI distribution.
package PPI::Token::Separator;

use strict;
use PPI::Token::Word ();

use vars qw{$VERSION @ISA};
BEGIN {
	$VERSION = '1.215';
	@ISA     = 'PPI::Token::Word';
}

1;