The Dpkg::BuildFlags object is used by dpkg-buildflags and can be used to query the same information. FUNCTIONS my $bf = Dpkg::BuildFlags->new() Create a