Re: C (I think) to Perl Conversion

From: Santa Claus (santa_at_northpole.com)
Date: 10/16/04


Date: Sat, 16 Oct 2004 10:52:29 GMT

In article <x7llefgpwu.fsf@mail.sysarch.com>,
 Uri Guttman <uri@stemsystems.com> wrote:

> >>>>> "BW" == Brad Walton <sammie-nospam@greatergreen.com> writes:
>
> BW> I'm stuck here... I have a sample script which accomplishes the
> BW> task I need done, but it's done in another programing language (of
> BW> which I have no understanding). I have researched this for hours
> BW> and hours, but no luck.
>
> BW> ----
>
> BW> This is a longshot.. but I don't know what else to do.
>
> hire a programmer.
>
> uri

Actually the only suggestion I have is RTFM. I'm having a time trying
to understand c language myself however there are basic programming
principles you can use to understand what needs to be done and rewrite
it in whatever language you need. Try to simply understand the syntax
of the c language and then you're a long way into understanding what
needs to be done, you don't need to learn c completely.

{ is begin block
} is end block
( is begin parameter sending to another routine or beginning of math
routine that needs to be done first
) is end parameter block sending or end of a math routine that needs to
be done first
/* is begin comment
*/ is end comment
! is single line comment not requiring an end comment

You get the idea, use what you know to try to understand whatever
symbols you already know and look online for the symbols you don't know.
There are c manuals online that will assist in the deciphering the code
for you.

The last thing I want to tell you is something odd in c that i really
hate which os an advanced feature called operator overload. There's a
way that a person can override the + sign and make it into whatever they
want including the - sign. This is meant for those that read a program
and try to take out parts of it and make it not work for them, sort of
like programmer protection.

Hope this helps



Relevant Pages

  • Re: Python or PHP?
    ... > every language here and there more ways to do something. ... The best the programmer can do, as you imply, is to ... parse out into proper perl expressions. ... > lists, dictionaries, etc. etc. ...
    (comp.lang.python)
  • Re: Python or PHP?
    ... >> every language here and there more ways to do something. ... The best the programmer can do, as you imply, is to ... I am curious of a list of extraneous methods in Perl (more about the ... I just had a glance on Python, ...
    (comp.lang.python)
  • Re: The War On HLA
    ... Take a look at the HLA compile-time language. ... Macros can be abused just like any other language feature. ... I find it amusing, however, that HLL programmers (e.g., Delphi, ... > feature is left to the programmer to invent his own uses for. ...
    (alt.lang.asm)
  • Re: A COBOL conundrum
    ... want to tell any programmer they can't use a legal COBOL verb. ... Use ALTER and you're fired. ... construct in the language, anything that can be accomplished with ALTER ... BANNED because professionals could handle it competently. ...
    (comp.lang.cobol)
  • Re: Is Lisp a Blub?
    ... known in the abstract space of programming language design that "ought" to be ... When the source code changes the programmer ... business needs of the customers who pay the bills. ... What about the Transformation Programmer? ...
    (comp.lang.lisp)