in reply to Re: ps aux and perl
in thread ps aux and perl
I assume that the 'j' in $j[1..8] stands for 'junk'... If you're actually going to not use those variables, you might consider using the following idiom to reduce the number of unused lexical variables created, 'variable used only once' warnings, and typing. ;)
my ($owner, $pid, (undef) x 8, $command_withIP) = split(' ', $_, 11);
Anyway, it's just a thought. Take it or leave it. :-)
Update: D'oh! Forgot necessary spaces around the x operator. Thanks lemming. :-)
bbfu
Seasons don't fear The Reaper.
Nor do the wind, the sun, and the rain.
We can be like they are.
|
|---|