PPI::Token::Word(3) User Contributed Perl Documentation PPI::Token::Word(3)NAME
PPI::Token::Word - The generic "word" Token
INHERITANCE
PPI::Token::Word
isa PPI::Token
isa PPI::Element
DESCRIPTION
A "PPI::Token::Word" object is a PPI-specific representation of several different types of word-like things, and is one of the most common
Token classes found in typical documents.
Specifically, it includes not only barewords, but also any other valid Perl identifier including non-operator keywords and core functions,
and any include "::" separators inside it, as long as it fits the format of a class, function, etc.
METHODS
There are no methods available for "PPI::Token::Word" beyond those provided by its PPI::Token and PPI::Element parent classes.
We expect to add additional methods to help further resolve a Word as a function, method, etc over time. If you need such a thing right
now, look at Perl::Critic::Utils.
literal
Returns the value of the Word as a string. This assumes (often incorrectly) that the Word is a bareword and not a function, method,
keyword, etc. This differs from "content" because "Foo'Bar" expands to "Foo::Bar".
method_call
Answers whether this is the name of a method in a method call. Returns true if yes, false if no, and nothing if unknown.
TO DO
- Add "function", "method" etc detector methods
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::Word(3)
Check Out this Related Man Page
PPI::Token::Operator(3) User Contributed Perl Documentation PPI::Token::Operator(3)NAME
PPI::Token::Operator - Token class for operators
INHERITANCE
PPI::Token::Operator
isa PPI::Token
isa PPI::Element
SYNOPSIS
# This is the list of valid operators
++ -- ** ! ~ + -
=~ !~ * / % x
<< >> lt gt le ge cmp ~~
== != <=> . .. ... ,
& | ^ && || //
? : = += -= *= .= //=
< > <= >= <> => ->
and or dor not eq ne
DESCRIPTION
All operators in PPI are created as "PPI::Token::Operator" objects, including the ones that may superficially look like a PPI::Token::Word
object.
METHODS
There are no additional methods beyond those provided by the parent PPI::Token and PPI::Element classes.
Got any ideas for methods? Submit a report to rt.cpan.org!
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.2 2011-02-25 PPI::Token::Operator(3)
I'm new to this entire Linux thing. I recenly acquired a used laptop with only DOS on it. I want to install Linux as my OS. The only thing I will use the computer for is basically Word Processing. I need the ability t save my documents in HTML format for transfer to other computers on occasion. My... (1 Reply)
I loaded OS X Panther on my Mac G4 and found that many files previously saved as Word or Word Perfect files were inadventently converted to Unix executable files. When I try to read these in Word, it cannot recognize or translate the file properly. Does anyone know how to translate these files? Is... (4 Replies)
Hello All,
I am new to UNIX, how do i get the First letter of each Word from a line in shell scripting.
For Example
line = "The Jack In The Box"
I want to reterive The letters T for The, J from Jack, I from In, T from The and B from Box.
and store in another string.
Can anyone... (5 Replies)
Hi All,
Please let me know how to get the count of a particular word in a file. Example. I am looking for count of word 'result' in a file abc.xml.
Thanks,
Shankar (10 Replies)
Hi,
I got some timetable in a file but it is all mixed up like this
01:00 hgrtwhrt #104:00 tyergethr05:00
tqqrthd qrth #107:00 qhtrhqerth10:00 qerthrthqr qtrqthr
qthrrt11:00 thqrthqrthrr
rthgreth #212:00 trhrthrth14:00 wrthwrtwrqrthwrthwr
#2116:00 trqhthtr: rthrthr17:00 rtwhtrhwrth rthwrt... (6 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Im currently doing a search command.. for example , when i typed a certain word , lets say "DOG".. all... (7 Replies)
hello,
Here is a program for creating a word-frequency
# wf.gk --- program to generate word frequencies from a file
{
# remove punctuation: This will remove all punctuations from the file
gsub(/_]/, "", $0)
#Start frequency analysis
for (i = 1; i <= NF; i++)
freq++
}
END
#Print output... (11 Replies)
Hello,
I have a unix file about 3000lines which i want to copy from and paste it into a Word document. If i cat the file and try to scroll through it then not everything is captured so i am getting and incomplete paste.
Any help is really appreciated.
jak (2 Replies)
The below snippet will find and replace string in a word document (.doc)..but the string which is replaced is highlighted how to remove the highlighted part..for eg
the string what i want to replace is "Apple" and it is highlighted in yellow color when i replace it with "Grapes" the same color is... (1 Reply)
Hi all,
I have 7 words
CAD
CD
HT
RA
T1D
T2D
BD
Now I have 1 file which contain data in large number of rows and columns
from 2 nd column onwards it contain any of these 7 words or may be more than one words among above 7 words:
these 7 names are present in starting from 2nd ... (7 Replies)
Hello Everyone,
Here I am offereing my Services
Word Posting Content Posting
PDF to excel or word
Image to Ms Word typeing
Document Creation
Video Creation
Any type Copy-Paste
Ads Posting
Article Posting
Manual Directory Submission
PR Submission
Social Bookmarking
Web 2.0 Blogs... (1 Reply)
Perl - Script
Rules
In a Word Ladder:
Players get a starting word and an ending word
Starting and ending words must be the same length (PIG and HOG, or CAT and DOG)
Players change one letter at a time, attempting to move from the starting word to the ending word
Each intermediate step... (1 Reply)
I have a bunch of documents where I need to change the word pi to pisignage.
No big deal there:
sed -i -e 's/pi/spisignage/g' /path/to/file
However it is finding things like the word stopping and making the word stoppisignageng.
Any suggestions to just find the word pi and change it?
... (3 Replies)