in reply to RE: Converting C #define to 'use constant' statements
in thread Converting C #define to 'use constant' statements

No need to rewrite the script to kill one cat:

perl def2const.pl /usr/include/linux/elf.h >>Constants.pm

        - tye (but my friends call me "Tye")

Replies are listed 'Best First'.
RE: (tye)RE: Converting C #define to 'use constant' statements
by btrott (Parson) on Nov 03, 2000 at 22:43 UTC
    Yes, but part of my point--no, I didn't mention it :)--was that the original script was reading the entire input into memory. The slight rewrite I did doesn't do that. And I realize that, w/ an include file, it's probably not that much of an issue; but I don't like the idea of reading an entire file into memory when it could be done more easily as a filter.