Solved

String manipulation libraries similar to <string.h> in C

Posted on 1999-01-06
3
241 Views
Last Modified: 2010-03-05
Does anyone know of a Perl string manipulation library similar to <string.h> found in the standard library of C?
0
Comment
Question by:bcan
3 Comments
 
LVL 5

Accepted Solution

by:
b2pi earned 50 total points
ID: 1207358
What you could possibly use is built into perl, as near as I can think.  You don't need the mem* functions, the str* functions are all right there (strlen is length,  strcpy is =, strcat is  .=, strcmp is ==, etc.  Anythiing that isn't built in (again, I can't think of anything) could be done quite quickly with regexps.  Were you thinking of something specific, or were you thinking of something like basic_string in STL?
0
 

Author Comment

by:bcan
ID: 1207359
Actually, I was able to find something close to what I was looking for.  Although I didn't have an exact problem, I was attempting to find options similar to splice().  
0
 
LVL 84

Expert Comment

by:ozo
ID: 1207360
substr?
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now