develooper Front page | perl.beginners | Postings from March 2002

strip first space

Thread Next
From:
Susan Aurand
Date:
March 1, 2002 09:19
Subject:
strip first space
Message ID:
3C7FC37F.994A6EFF@haywood.k12.nc.us
If I have a string and the first character is a space,
may not always be a space.
Example:  John
              Tommy
                Beth

John and Beth have a space, Tommy does not.
How do I strip that. I do not want to use the global
command because a want the space between First
and Last name. Any suggestions?

Susan
Information Technology Center
828-627-8314


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About