in reply to C to perl

include <stdio.h> int main() { char ch; printf("Enter a character\n"); scanf("%c", &ch); if (ch == 'a' || ch == 'A' || ch == 'e' || ch == 'E' || ch == 'i' || + ch == 'I' || ch =='o' || ch=='O' || ch == 'u' || ch == 'U') printf("%c is a vowel.\n", ch); else printf("%c is not a vowel.\n", ch); return 0; }

Replies are listed 'Best First'.
Re^2: C to perl
by ww (Archbishop) on Jul 27, 2016 at 11:44 UTC

    Why would you expect a Monk to do this trivial transformation for you? This is not a code-writing service... but posting code (without an explicit question other than the inherited title which lacks the OP's addition of "automated" to the requirement) shows no inclination to use SOPW as a learning tool.

    If you do have an interest in learning, then please read the relevant introductory selections (include those re regexen) in the Tutorials section here.

    UPDATED: Revised para 1 upon discovery that the node to which I replied was a continuation of a 7 year old (2009) thread. Aaargh!


    <!--

    Another gimmé request?
    Sorry, we expect SOPW to seek wisdom, not to ask us to do so for them.