I’d like to have all the items in cflags automatically in cppflags. How do I? Following fail code:
my %conf = (
'cflags' => ['-g', '-O0'],
'cppflags' => [ @{$conf{cflags}} ],
'bindir' => $PWD . "/bin",
);
Sorry for the silly question, I’m new to perl :P.
You’re still building the list to assign to
%conf, so nothing’s been assigned to%confyet, so trying to read from$conf{cflags}is going to be fruitless.Option 1:
Option 2:
Option 3:
(In decreasing order of personal preference.)