in reply to shortening substitutions

How about this,

s/((^\s+)|\s{4}|[";]+)+// for (@point_names);

tlm your are correct.It depends on the input string.
Updated: As per tlm instruction.

Prasad

Replies are listed 'Best First'.
Re^2: shortening substitutions
by tlm (Prior) on Jun 17, 2005 at 11:23 UTC

    No, this can results in as few as 1 substitution on input strings for which the original can produce up to four. (thundergnat's solution has similar problems.) I don't see the advantage of doing what the OP requests.

    the lowliest monk