in reply to A small queestion to match processes
#obtain the length to match according to ps aux { print "#Enter the block just once\n"; last if $strindex; $strindex = index($_, "STAT"); #obtain how characters the RegEx should not match } #no more of this besides the first line
A simpler way to do that:
$strindex = $-[0] if ?STAT?;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: A small queestion to match processes
by heatblazer (Scribe) on Oct 05, 2012 at 18:46 UTC | |
by kcott (Archbishop) on Oct 06, 2012 at 00:00 UTC | |
by heatblazer (Scribe) on Oct 07, 2012 at 07:55 UTC |