I've resolved it with your help, see below:
if ($line =~ qr|$owner\s+(\d+).*$processName|)
The line above wound up being the winner.
The line I was parsing is below, however it is abbreviated because the other JVM params and classpath show up after that. That's why the trailing $ didn't work. Don't know why the whitespace character before the processName didn't work.
firtdev3 23052 0.3 0.3 5914496 419300 ? Sl 12:41 0:29 /opt/
+streets/vendorLib/java/linux/jdk1.7.0_45/bin/java -DprocessName=STP_I
+NBOUND_INTERFACES.3
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.