My previous solution doesn't manage the splitted record.
A new solution :
Just a little problem, there is an empty record generated at the begining of the result.
I am using vi to edit shell scripts, but whenever I get to the end of the line it goes to the next line, and when I run the script it considers whatever was placed onthe next line a new command...I guess this has to do with word wrap- how do I continue to write on one line? (3 Replies)
Hi,
This is my first time post a new thread. I have been trying to work on this for the past 2 days and could not find any good solution.
I have 1 long long line ( EDI wrapped file) like below:
NEW*SR*04411763447*279*278*Q~*ZR*AAV*SR*04511763460*SQ*21B37F04~HL*305*304*Q~K~SN1*1*1*SR*05511763461*... (6 Replies)
in my HP-Unix environment I continue to have issues seeing the whole file path when I do a grep
Example:
>ps -ef |grep test
> /testpath/is/here/
should see:
>ps -ef |grep test
> /testpath/is/here/not/here/test
Is there a setting to turn word wrap on/off? It works fine in our AIX... (4 Replies)
Hi,
I have gone through may posts and dint find exact solution for my requirement.
I have file which consists below data and same file have lot of other data.
<MAPPING DESCRIPTION ='' ISVALID ='YES' NAME='m_TASK_UPDATE' OBJECTVERSION ='1'>
<MAPPING DESCRIPTION ='' ISVALID ='NO'... (11 Replies)
I tried line wrap in sed by sed -l 20 ' n' and as far as i understand each long line would be split into lenght of 20 characters in each. but thats not happening.wats going wrong:confused: (5 Replies)
When I cat a file that has several hundred characters in a line, the right hand side is truncated. How can I make everything displayed on my screen word wrap? (6 Replies)
Hi Folks,
Could you please advise what will be the SED command to replace a word in all xml's under a particular directory
for example let say I rite now at the following below location
$ cd /ter/rap/config
now under config directory there will be lots of xml file , now my objective is to... (1 Reply)
Hi,
I have a file myfile.txt as seen below.
Name Age Days
--------- ------- --------
ABC 5 23
DEF 20 120
When i cat this file into a html file and send mail, I could see the file is opened as seen below.
Name Age Days --------- ... (7 Replies)
Discussion started by: jayadanabalan
7 Replies
LEARN ABOUT OSX
ppi::token::word
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.2 2011-02-25 PPI::Token::Word(3)