PPI::Token::Symbol(3) User Contributed Perl Documentation PPI::Token::Symbol(3)NAME
PPI::Token::Symbol - A token class for variables and other symbols
INHERITANCE
PPI::Token::Symbol
isa PPI::Token
isa PPI::Element
DESCRIPTION
The "PPI::Token::Symbol" class is used to cover all tokens that represent variables and other things that start with a sigil.
METHODS
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.
canonical
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.
symbol
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.
raw_type
The "raw_type" method returns the apparent type of the symbol in the form of its sigil.
Returns the sigil as a string.
symbol_type
The "symbol_type" method returns the actual type of the symbol in the form of its sigil.
Returns the sigil as a string.
SUPPORT
See the support section in the main module.
AUTHOR
Adam Kennedy <adamk@cpan.org>
COPYRIGHT
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.
perl v5.16.3 2011-02-26 PPI::Token::Symbol(3)
Check Out this Related Man Page
PPI::Token::Magic(3) User Contributed Perl Documentation PPI::Token::Magic(3)NAME
PPI::Token::Magic - Tokens representing magic variables
INHERITANCE
PPI::Token::Magic
isa PPI::Token::Symbol
isa PPI::Token
isa PPI::Element
SYNOPSIS
# When we say magic variables, we mean these...
$1 $2 $3 $4 $5 $6 $7 $8 $9
$_ $& $` $' $+ @+ %+ $* $. $/ $|
$\ $" $; $% $= $- @- %- $) $#
$~ $^ $: $? $! %! $@ $$ $< $>
$( $0 $[ $] @_ @* $} $, $#+ $#-
$^L $^A $^E $^C $^D $^F $^H
$^I $^M $^N $^O $^P $^R $^S
$^T $^V $^W $^X
DESCRIPTION
"PPI::Token::Magic" is a sub-class of PPI::Token::Symbol which identifies the token as "magic variable", one of the strange and unusual
variables that are connected to "things" behind the scenes.
Some are extremely common, like $_, and others you will quite probably never encounter in your Perl career.
METHODS
The class provides no additional methods, beyond those provided by it's PPI::Token::Symbol, PPI::Token and PPI::Element.
SUPPORT
See the support section in the main module.
AUTHOR
Adam Kennedy <adamk@cpan.org>
COPYRIGHT
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.
perl v5.18.2 2011-02-25 PPI::Token::Magic(3)
Anyone know how to have the copyright symbol display without using the '@' sign or the '(c)' key combinations? Is it available?
Not important, just my a... retentive side wishing to shore up some scripts with a true copyright symbol. (2 Replies)
Hey everyone, I can't figure out this symbol referencing error after looking at it for the longest time, and I figured some fresh eyes might be able to point something out I am overlooking.
Undefined first referenced
symbol in... (1 Reply)
Dear all,
I had the "Symbol referencing errors" while compiling a C socket code.
It said "Undefined Symbol: socketpair", but I already copy the two head files (#include "types.h", #include "socket.h") into my current directory.
Could anyone help me with it? Thanks.
By the way, I'm using... (4 Replies)
When I try to link a .so file I get the undefined symbol error. Though I have the library file in my system. The compile and linking commands used are as follows
g++ -m64 -g -Wall -I./include -c dxl_sample.c
g++ -o firstprogram -m64 -g -Wall -I./include -Bdynamic... (1 Reply)
When I try to link a .so file I get the undefined symbol error. Though I have the library file in my system. The compile and linking commands used are as follows
g++ -m64 -g -Wall -I./include -c dxl_sample.c
g++ -o firstprogram -m64 -g -Wall -I./include -Bdynamic... (1 Reply)