in reply to Thinkin' Perl in C++
I'd like to find a C++ Perl class I could import ... I am trying to recall the CString functions to do this
Sounds like a sledgehammer to crack a peanut given all you need is: while( p = strchr( s, '-' ) ) *p = '_';
I sympathise with the sentiment of wanting Perl's string handling from C, but the power of Perl's string comes not directly from it's built-in functions -- there's only substr & length of note which are nothing particularly powerful or special -- but more from the regex engine.
Perhaps this is what you are looking for?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Thinkin' Perl in C++
by JavaFan (Canon) on Mar 01, 2012 at 17:09 UTC |