Hello
Now the question how does this put this into a line of code? Say I
have $String1 and $String2 where I want to do $String1 = $String2
with the conversion. What would the code look like?
Andrew
At 05:23 PM 10/11/2008, Mr. Shawn H. Corey wrote:
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
--
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 270.8.0/1719 - Release Date:
10/10/2008 4:08 PM
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/