<?xml version="1.0" encoding="windows-1252"?>
<node id="1010845" title="Re: convert c-code into perl-code" created="2012-12-29 14:52:52" updated="2012-12-29 14:52:52">
<type id="11">
note</type>
<author id="290905">
Old_Gray_Bear</author>
<data>
<field name="doctext">
Insert the following statements at the top of your C code:
&lt;code&gt;
#! /usr/local/bin/perl

use strict;
use warnings;

&lt;/code&gt;
Add +x to the file permissions.
&lt;p&gt;
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.)
&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-290905"&gt;
&lt;p&gt;
----&lt;br&gt; 
I Go Back to Sleep, Now.
&lt;p&gt;
OGB
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1010810</field>
<field name="parent_node">
1010810</field>
</data>
</node>
