in reply to How can I strip an arbitary number of leading spaces from a string?

$string =~ s/^\s+//gm;
this will start at the beginning and only continue as long as there is whitespace left at the beginning of the string.
  • Comment on Re: How can I strip an arbitary number of leading spaces from a string?
  • Download Code