On Thu, Dec 12, 2002 at 07:36:42AM +0100, A. Pagaltzis wrote: > * Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> [2002-12-12 07:32]: > > While it's cool, and I'D use it, for readability purposes, > > might I suggest: > > > > $sql =~ /(\s*)/ and $sql =~ s/^$1//mg; > > How about /^(\s*)/ - better safe than sorry. > > On second thought, /^(\s*|)/ to avoid warnings.
What kind of warning? Do you know of a string where /^(\s*)/ doesn't match? Perhaps a string without a beginning? Or that has -1 space at the beginning? Abigail