mtr4cv has asked for the wisdom of the Perl Monks concerning the following question:

I'm attempting to use C::Scan (version 0.74 in ActiveState 631 on Windows NT) to get a list of the functions ('fdecls') in a C file. I'm getting the error:

"The name specified is not recognized as an internal or external command, operable program or batch file."

Via the debugger, I found that the error message occurs at line 862 of C/Scan.pm in C::Preprocessed::text. The line is:
        my $oh = select $stream;

Does anyone have any idea what the problem is? Can anyone explain to me what the above line is doing? I tried 'defines_no_args' in C::Scan and it worked fine.
Thanks for any help!

Replies are listed 'Best First'.
Re: problems using 'fdecls' in C::Scan
by talexb (Chancellor) on Mar 14, 2002 at 14:21 UTC
    Via the debugger, I found that the error message occurs at line 862 of C/Scan.pm in C::Preprocessed::text. The line is:
    my $oh = select $stream;
    Can anyone explain to me what the above line is doing?

    That's saving the file handle (a.k.a. input or output stream, hence the variable name) refered to by $stream in the variable $oh.

    One wishes that the original developer had used more descriptive variable names, but it's difficult to be harsh based on just one line of code.

    --t. alex

    "Here's the chocolates, and here's the flowers. Now how 'bout it, widder hen, will ya marry me?" --Foghorn Leghorn