Help for this page
my @compounds = qw( C3H8O2 ... grep /P/, @compounds;
my @compounds = qw( C3H8O2 ... map /P/ ? [ $_, /C(\d+)/ ] : (), @compounds;