Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^4: How to convert a script from C to Perl?

by lyklev (Pilgrim)
on Oct 26, 2010 at 21:33 UTC ( #867551=note: print w/replies, xml ) Need Help??

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 );
sprintf(string, "P%d", counter + 1);
and remove the num2Pstring routine.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://867551]
[LanX]: DBI: is there an easy method to get the content of a column as an array
[LanX]: values %{ $DBI->fetchrow_has href('column_name' }
[LanX]: ehm ... fetchall_hashref
[Jenda]: my int @a = ^5_000_000 Coerces the argument to Numeric, and generates a range from 0 up to (but excluding) the argument.
[Jenda]: The apparent design principle of Perl6 operators was "Let's confuse 'em dudes." Whose braindead idea was this particular operator and the three hundred around it?

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2018-07-16 16:49 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (344 votes). Check out past polls.