in reply to Automatic JAPHs

C is not Perl! There is no <>! No @ARGV is opened for getchar()! getchar() actually reads from STDIN!
japhy doesn't program in C very much. BTW the syntax is good.

Replies are listed 'Best First'.
Re: Re: Automatic JAPHs
by japhy (Canon) on Jul 05, 2001 at 22:54 UTC
    I'm afraid I don't understand you.
    • C is not Perl! That is right. This was a silly bit of code. No harm done.
    • There is <>! Right.
    • No @ARGV is opened for getchar()! Right. I never actually read the file they put at the command-line. There's no reason to.
    • getchar() actually reads from STDIN! That is correct too! I read from the terminal if the user has piped a file to me, or if there are no arguments.
    • japhy doesn't program in C very much. That is not wholly true. I don't program in C nearly as much as I use Perl. However, I've been doing more C-work since I started patching Perl.
    • BTW the syntax is good. Thanks to my Perl experience, my C code is often sharp and concise.


    japhy -- Perl and Regex Hacker
Re: Re: Automatic JAPHs
by bschmer (Friar) on Jul 06, 2001 at 15:27 UTC
    Hopefully this is sarcasm. If not, it would seem that Anonymous doesn't have the best grip on C.....