Solved

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

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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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

734 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