freelanceprogrammers.org Forum Index » Perl
the darn + signs
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
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.
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
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
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
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







