Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Forums
Blogs
Articles
Groups
Galleries
Member List
Calendar
Home
Forum
Simply Business
Fucking Around & Business Discussion
perl question
perl question
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Zester
Confirmed User
Join Date:
Jul 2003
Posts:
5344
Share
Post
#1
perl question
02-23-2005, 05:17 AM
I know how to get rid of a white space at the end of the string: that's either chop or chomp
but how do you get rid of a white space at the
beginning
of a string?
*
Mainstream ?
$65 per sale
*
new male contraception
mortenb
Confirmed User
Join Date:
Jul 2004
Posts:
2203
Share
Post
#2
02-23-2005, 05:21 AM
http://www.somacon.com/blog/page14.php
Comment
Post
Cancel
darksoul
Confirmed User
Join Date:
Apr 2002
Posts:
4997
Share
Post
#3
02-23-2005, 05:23 AM
chomp by default removes new lines from the end of the string.
anyway this is what you're looking for:
$x =~ s/^\s+//g; for beginning
$x =~ s/\s+$//g; for ending.
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
Comment
Post
Cancel
Zester
Confirmed User
Join Date:
Jul 2003
Posts:
5344
Share
Post
#4
02-23-2005, 05:29 AM
thanks----
*
Mainstream ?
$65 per sale
*
new male contraception
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
😀
😂
🥰
😘
🤢
😎
😞
😡
👍
👎
☕
Comment