- or download this
package MyConfig;
...
$var = "SOME_FOO";
1;
- or download this
#!/usr/bin/perl -w
...
use MyConfig;
printf(">%s<\n",$MyConfig::var);
- or download this
#include <stdio.h>
#include <stdlib.h>
...
return(EXIT_SUCCESS);
}
- or download this
PERL_CCOPTS = `perl -MExtUtils::Embed -e ccopts`
PERL_LDOPTS = `perl -MExtUtils::Embed -e ldopts`
...
all:
gcc -g -o read_config.o -c read_config.c $(PERL_CCOPTS)
gcc -g -o read_config read_config.o $(PERL_LDOPTS)