Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: convert c-code into perl-code

by Old_Gray_Bear (Bishop)
on Dec 29, 2012 at 19:52 UTC ( #1010845=note: print w/replies, xml ) Need Help??


in reply to convert c-code into perl-code

Insert the following statements at the top of your C code:
#! /usr/local/bin/perl use strict; use warnings;
Add +x to the file permissions.

Execute the file, correct all of the warnings and errors, and 'Hey Presto' you have Perl code. (Now you will need to read up on the differences between the f-subroutines and their real counterparts, but I have to leave something as an exercise for the Student.)

----
I Go Back to Sleep, Now.

OGB

Replies are listed 'Best First'.
Re^2: convert c-code into perl-code
by LanX (Chancellor) on Dec 29, 2012 at 20:05 UTC
    Excellent, but wrong section!

    ... this gem belongs to Tutorials! ;-)

    Cheers Rolf

    PS: not really a joke...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010845]
help
Chatterbox?
[Discipulus]: i still suspect english has some logical 'curvature/ crookedness' that has and will have a big impact over programming
[Discipulus]: if you refere to gestures ++choroba
Discipulus still has problem with 'until' beyond simplest cases
[choroba]: ;-)
[Discipulus]: and larry studied natural languages too
[choroba]: Czechs have problems with unless
[Lady_Aleena]: Are you all sick of me discussing my reorganization?
[Discipulus]: Untillian Headache or about the semantic of until

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2017-05-27 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?