in reply to How to convert a script from C to Perl?
1) You need to get the source for util.c as presumably fmakeword(), plustospace(), unescape_url() are in there.
2) Past that, the code just will not work. For example, the subroutine num2Pstring() returns a pointer to a dynamically allocated stack variable - that just will not fly - barf, die, croak. So the assumption that you have "good" C code is wrong.
3) You might be better off generating a program spec of what you want this thing to do and having somebody write a new version of it for you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to convert a script from C to Perl?
by lyklev (Pilgrim) on Oct 26, 2010 at 20:29 UTC | |
|
Re^2: How to convert a script from C to Perl?
by Anonymous Monk on Oct 26, 2010 at 19:12 UTC | |
by ig (Vicar) on Oct 27, 2010 at 10:14 UTC | |
by ikegami (Patriarch) on Feb 03, 2011 at 18:00 UTC |