| PPI documentation | Contained in the PPI distribution. |
PPI::Token::Quote::Literal - The literal quote-like operator
PPI::Token::Quote::Literal
isa PPI::Token::Quote
isa PPI::Token
isa PPI::Element
A PPI::Token::Quote::Literal object represents a single literal
quote-like operator, such as q{foo bar}.
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!
See the support section in the main module.
Adam Kennedy <adamk@cpan.org>
Copyright 2001 - 2011 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
| 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;