in reply to Re^3: How to convert a script from C to Perl?
in thread How to convert a script from C to Perl?

...and since we were fixing things, replace the statement near the end of plant_id.c

string = num2Pstring( counter + 1 );
with
sprintf(string, "P%d", counter + 1);
and remove the num2Pstring routine.