---
name: "Dpkg::Build::Env"
section: "3perl"
platform: "linux"
package: "libdpkg-perl"
version: "1.20.13"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/Dpkg::Build::Env/3perl"
---

# Dpkg::Build::Env(3perl)

track build environment

## NAME

Dpkg::Build::Env - track build environment

## DESCRIPTION

The Dpkg::Build::Env module is used by dpkg-buildflags to track the build environment variables being used and modified.

## FUNCTIONS

- set($varname, $value)

  Update the build environment variable `$varname` with value `$value`. Record it as being accessed and modified.

- get($varname)

  Get the build environment variable `$varname` value. Record it as being accessed.

- has($varname)

  Return a boolean indicating whether the environment variable exists. Record it as being accessed.

- @list = **list\_accessed()**

  Returns a list of all environment variables that have been accessed.

- @list = **list\_modified()**

  Returns a list of all environment variables that have been modified.

## CHANGES

### Version 0.xx

This is a private module.
