in reply to convert c-code into perl-code
Insert the following statements at the top of your C code:
Add +x to the file permissions.#! /usr/local/bin/perl use strict; use warnings;
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 (Saint) on Dec 29, 2012 at 20:05 UTC |
In Section
Seekers of Perl Wisdom