[HRPM] Sorting ps list - source code for server and client
chicks at chicks.net
chicks at chicks.net
Sat Jan 6 11:00:28 CST 2001
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