freelanceprogrammers.org Forum Index » Perl

the darn + signs


View user's profile Post To page top
rpmtech Posted: Sat Jul 10, 1999 7:53 am


Joined: 07 Jul 1999

Posts: 6
the darn + signs
How can I split a string by the + sign?<br>because when I use:<br><br>@w =
split(/+/,$r);<br><br>it gives me a cgi error<br><br>Thanks
Reply with quote
Send private message
View user's profile Post To page top
sonomatto Posted: Mon Jul 12, 1999 6:20 am


Joined: 12 Jul 1999

Posts: 1
the darn + signs
Try:<br><br>@w = split(/+/,$r);<br><br>+ is a special character inside
patterns, so if you want a literal +, you have to backslash it.
Reply with quote
Send private message
View user's profile Post To page top
rpmtech Posted: Mon Jul 12, 1999 6:39 am


Joined: 07 Jul 1999

Posts: 6
the darn + signs
ok thanks, I knew it must have been something
like that. but I have changed it to look at every
character so I could get puncuation and everything. but I
will use that idea next time.<br><br><br>Thanks
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help