in reply to Re: Re: Re: Removing spaces, again.
in thread Removing spaces, again.

I've also been scratching my head over that leading space. The only thing I can think of is that he really wrote something like:
($BKSIC_MODEL[$i] = substr ($line, 3, 7)) =~ m/^\s*(.*)\s*$/;
(which would simply capture the substr result and throw away the result of the pattern match)

... instead of the line he posted here:

($BKSIC_MODEL[$i]) = substr ($line, 3, 7) =~ m/^\s*(.*)\s*$/;
(which should not capture the leading space)

buckaduck