PPI::Token::Quote::Literal - The literal quote-like operator


PPI documentation Contained in the PPI distribution.

Index


Code Index:

NAME

Top

PPI::Token::Quote::Literal - The literal quote-like operator

INHERITANCE

Top

  PPI::Token::Quote::Literal
  isa PPI::Token::Quote
      isa PPI::Token
          isa PPI::Element

DESCRIPTION

Top

A PPI::Token::Quote::Literal object represents a single literal quote-like operator, such as q{foo bar}.

METHODS

Top

There are no methods available for PPI::Token::Quote::Literal beyond those provided by the parent PPI::Token::Quote, PPI::Token and PPI::Element classes.

Got any ideas for methods? Submit a report to rt.cpan.org!

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::Quote::Literal;

use strict;
use PPI::Token::Quote              ();
use PPI::Token::_QuoteEngine::Full ();

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





#####################################################################
# PPI::Token::Quote Methods

sub string {
	my $self     = shift;
	my @sections = $self->_sections;
	my $str      = $sections[0];
	substr( $self->{content}, $str->{position}, $str->{size} );	
}

*literal = *PPI::Token::Quote::Single::literal;

1;