On Sat, 2008-10-11 at 16:58 -0700, AndrewMcHorney wrote:
> Hello
> 
> I am working on a script that does a directory of a Windows drive. 
> There are some lines returned where there are spaces before the 1st 
> character. This throws off the splitting of the line into an array. 
> How can I strip the leading characters in an efficient way into 
> either the same string or a new string.

s/^\s+//;


-- 
Just my 0.00000002 million dollars worth,
  Shawn

Linux is obsolete.
-- Andrew Tanenbaum


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to