?
Solved

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

Posted on 1999-01-06
3
Medium Priority
?
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 5

Accepted Solution

by:
b2pi earned 150 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
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…
Six Sigma Control Plans

718 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