GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PPI::Token::Symbol(3) User Contributed Perl Documentation PPI::Token::Symbol(3)

PPI::Token::Symbol - A token class for variables and other symbols

  PPI::Token::Symbol
  isa PPI::Token
      isa PPI::Element

The "PPI::Token::Symbol" class is used to cover all tokens that represent variables and other things that start with a sigil.

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

Most methods are provided to help work out what the object is actually pointing at, rather than what it might appear to be pointing at.

The "canonical" method returns a normalized, canonical version of the symbol.

For example, it converts "$ ::foo'bar::baz" to $main::foo::bar::baz.

This does not fully resolve the symbol, but merely removes syntax variations.

The "symbol" method returns the ACTUAL symbol this token refers to.

A token of $foo might actually be referring to @foo, if it is found in the form $foo[1].

This method attempts to resolve these issues to determine the actual symbol.

Returns the symbol as a string.

The "raw_type" method returns the apparent type of the symbol in the form of its sigil.

Returns the sigil as a string.

The "symbol_type" method returns the actual type of the symbol in the form of its sigil.

Returns the sigil as a string.

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.

2019-07-09 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.