PPI::Statement::Break(3) User Contributed Perl Documentation PPI::Statement::Break(3)NAME
PPI::Statement::Break - Statements which break out of normal statement flow
SYNOPSIS
last;
goto FOO;
next if condition();
return $foo;
redo;
INHERITANCE
PPI::Statement::Break
isa PPI::Statement
isa PPI::Node
isa PPI::Element
DESCRIPTION
"PPI::Statement::Break" is intended to represent statements that break out of the normal statement flow control. This covers the basic
types 'redo', 'goto', 'next', 'last' and 'return'.
METHODS
"PPI::Statement::Break" has no additional methods beyond the default ones provided by PPI::Statement, PPI::Node and PPI::Element.
However, it is expected to gain methods for identifying the line to break to, or the structure to break out of.
TO DO
- Add the methods to identify the break target
- Add some proper unit testing
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::Statement::Break(3)
Check Out this Related Man Page
PPI::Statement::Break(3pm) User Contributed Perl Documentation PPI::Statement::Break(3pm)NAME
PPI::Statement::Break - Statements which break out of normal statement flow
SYNOPSIS
last;
goto FOO;
next if condition();
return $foo;
redo;
INHERITANCE
PPI::Statement::Break
isa PPI::Statement
isa PPI::Node
isa PPI::Element
DESCRIPTION
"PPI::Statement::Break" is intended to represent statements that break out of the normal statement flow control. This covers the basic
types 'redo', 'goto', 'next', 'last' and 'return'.
METHODS
"PPI::Statement::Break" has no additional methods beyond the default ones provided by PPI::Statement, PPI::Node and PPI::Element.
However, it is expected to gain methods for identifying the line to break to, or the structure to break out of.
TO DO
- Add the methods to identify the break target
- Add some proper unit testing
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.10.1 2011-02-26 PPI::Statement::Break(3pm)
Dear all,
Please advise what approach can remove all line break from a text file?
e.g.
Source file:
A
B
C
Target file:
A, B, C
Thanks,
Rock (5 Replies)
I knew this would not work because of problem with "redo". Is there a way to fix this? Thanks a lot!
my @n = (10..100);
my $i;
my $j = 0;
my $k;
LINE1: for ($i; $i < 10; $i++) {
$k = $n;
$j += $k;
}
if ( ((550 - $j) < 10) || ((550 - $j) > 100) ) {
redo LINE1;
} (5 Replies)
Hello All,
I am new to unix scripting, I have an urgent issue
Is it possible to do a group by on the last column and then a page break on the text file.
For example I have a text file, below is the example data
STRT 2154081~VA ~23606 ~TM14~8506~1485
STRT 2130893~VA ~23602 ~TM15~8602~1586... (4 Replies)
have a query on this break. I am using a program where I am using a while loop to execute it. It will get into a file take the first file and then ping it and if the ip is reachable then it will mail. Now what happens is that when i ping the ip it does nopt come out of the loop and it says "reply... (11 Replies)
Break one line to many lines using awk
The below code works but i want to implement without combining field 2 and 3 and then splitting i would like to do this in one command
instead of writing multiple commands and creating multiple lines.
nawk -F"|" '{print $1,$2SUBSEP$3}' OFS="|" file >... (16 Replies)
Hello,
I need to check a list of Tables using OR condition
if ; then
exit 0
else
DO something
Fi
I should include more than 1 table once the above works fine..
if -o ; then ...
Do I need to have in quotes, I am getting error in the above code , can someone... (1 Reply)
How can i break a single line into 5 lines
# joseluiz.silvano; Ramal4846; Sala4121; SetorCorregedoria host DF04488962 { hardware ethernet 00:16:41:68:57:0B; fixed-address 10.100.111.245; }
INTO
# joseluiz.silvano; Ramal4846; Sala4121; SetorCorregedoria
host DF04488962 {... (5 Replies)
Hi All,
I am trying to put multiple conditions in an IF Statement (using $$). the Linux script somehow doesnt like it. The logic I am trying to implement is as follows,
1. I will first search for DateFile.txt
2. If it exists & there is a P_BUS_DATE value in it, then assign the date value... (5 Replies)
Hi,
I want to Break the Link Aggregation. My aggregation are lan0+lan1 = lan900.
Now I want to break this and put the IP in lan0. But i have cluster environment and this is the main database server.
So It need to change in cluster script.
But I dont know where I have to change it.
Please... (1 Reply)
When I try the below if Condition with single condition its working fine.
But when I try to Club both its working . But giving wrong results.
In my case
cond1 = -f ${filename1} = true
cond2 = -f ${filename2} = true
But Cond1 & Cond2 is resulting in False ??? Please advise
... (5 Replies)
Hi All,
Please can you advise/help on the below issue
i did a bcp out of a table, it is having problem of line break such that one line is getting broken in two lines for many records.
eg
Correct format
Line 1: - 000f00000bfe2c2c 000218310300000000GBP GBP 734654 10970.35 ... (3 Replies)
Hi,
I have a requirement to monitor a srver log file realtime for a word 'Started'. Once found, I invoke another program tp perform additional processing.
The code below meets my requirement.
tail -f nohup.out | \
while read line ; do
echo "$line" | grep -i "Started"
if
then
java... (19 Replies)