Solved

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

Posted on 1999-01-06
3
247 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 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

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

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…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
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

626 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