Solved

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

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
collecting information 2 184
Need Helping Editing Perl Script for PowerChute Network Shutdown 3 87
Regular Expression for URL 10 102
Perl Frameworks 1 98
I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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…

820 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