my $v1 =0;
my $v2=0;
........................................
if ($_ =~ m/Content:/) {
$v1 = # I need to extract Value1....
$v2 = # I need to extract Value2....
if ( $v2 < 1) { //this is ok
......................
}
//the file is:
SomeString SomeString
Content:
# blank line
SomeString SomeString SomeString SomeString Value1 Value2
SomeString SomeString Value1 Value2
SomeString SomeString SomeString Value1 Value2
# blank line
SomeString
SomeString SomeString
.........................
my $v1 =0;
my $v2=0;
........................................
if ($_ =~ m/Content:/) {
$v1 = # I need to extract Value1....
$v2 = # I need to extract Value2....
if ( $v2 < 1) { //this is ok
......................
}
//the file is:
SomeString SomeString
Content:
# blank line
SomeString SomeString SomeString SomeString Value1 Value2
SomeString SomeString Value1 Value2
SomeString SomeString SomeString Value1 Value2
# blank line
SomeString
SomeString SomeString
.........................
To copy to clipboard, switch view to plain text mode
As you can see there are some lines that end with two numbers. Is it possible detect only that line and extract the last two values?
thanks,
Bookmarks