[HRPM] Sorting ps list - source code for server and client

Matt Shivers mshivers11 at home.com
Sat Jan 6 15:41:42 CST 2001


Cool. Thanks again.

Matt

----- Original Message ----- 
From: <chicks at chicks.net>
To: <norfolk-pm-list at happyfunball.pm.org>
Sent: Saturday, January 06, 2001 12:00 PM
Subject: Re: [HRPM] Sorting ps list - source code for server and client


> On Sat, 6 Jan 2001, Matt Shivers wrote:
> 
> > I reviewed each line to figure out what it did, but I couldn't nail
> > down the following line:
> >      $copya =~ s/^\s+//;  $copyb =~ s/^\s+//;
> > 
> > This binds the pattern to the scalars, but what is it accomplishing?
> > Would you shed some light on this?
> 
> It's removing initial white space from the data before comparing it.
> Otherwise the comparison would see the white space, and it would evaluate
> to 0.  This caused some bewildering results until I figured it out.
> 
> -- 
> </chris>
> 
> Those who cannot remember the past are doomed to buy Microsoft products.
> 




More information about the Norfolk-pm mailing list