Cool. Needed some changes to get it working, though.
s/^\s+//; my $Var=(split /\s+/,$_,2)[0] or next; next unless ($Var=~/_/o);
I think leading whitespace stuff broke your script on my system. So I deleted it. The or next is needed to prevent the compiler from whining about undefined variables. Couldn't get my gcc to eat the .c, though. Has something to do with a whole mess of backspaces.

Update: Got it now (at last). By coincedence, all references to the macros are without preceding _, and otherwise they appear just before end-of-sentence ;-) (aka: '.'). So now I have the following code, which compiles if I manually delete one entry that appears to miss in the lib somehow.

... s/^\s+//; my $Var=(split /\s+/,$_,2)[0] or next; $Var =~ s/.\010//g; next unless ($Var=~/^_/o); next if ($Var =~ /\./); my $Cvar=lc $Var; ....

Cheers,

Jeroen
I was dreaming of guitarnotes that would irritate an executive kind of guy (FZ)


In reply to Re: Get your system configuration from a man page. by jeroenes
in thread Get your system configuration from a man page. by ChOas

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.