Paul Gurzick wrote:
>
> I am sure there is an easy way to trim off left
> characters in a string, I can't figure it out. I used
> to use LTRIM in Visual Basic.
What kind of characters? How many? Go to perlfunc doc and
check substr command for fixed number of characters or even
unpack. index and rindex are often useful in finding the position
of characters in a string.
eg: $string = substr ($string, 3); # drop first three chars
Else go to perlre doc and check out using an anchored regular expression.
eg: $string =~ s/^.{3}//; # drop first three chars
Next time give an example of input and expected output and we
could get more specific.
--
,-/- __ _ _ $Bill Luebkert ICQ=14439852
(_/ / ) // // DBE Collectibles http://www.wgn.net/~dbe/
/ ) /--< o // // Mailto:[EMAIL PROTECTED] http://dbecoll.webjump.com/
-/-' /___/_<_</_</_ http://www.freeyellow.com/members/dbecoll/
---
You are currently subscribed to perl-win32-users as: [[email protected]]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]