Don't ask to ask, just ask | |
PerlMonks |
Re^4: extracting value in a string after checking value after colon ':'by Laurent_R (Canon) |
on Jan 30, 2019 at 09:40 UTC ( [id://1229156]=note: print w/replies, xml ) | Need Help?? |
i only want to extract the node number (250,251..) only if string cpus: is empty after the colon.That's seems to be exactly the output from Athanasius's code. Or, if it is not, then please explain in which respect Athanasius's code does not produce what you want. And also show the code you're using.
In Section
Seekers of Perl Wisdom
|
|