---
name: "Dpkg::BuildEnv"
section: "3perl"
platform: "linux"
package: "dpkg"
version: "1.23.11-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Dpkg::BuildEnv/3perl"
---

# Dpkg::BuildEnv(3perl)

track build environment

## NAME

Dpkg::BuildEnv - track build environment

## DESCRIPTION

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

**Note**: This is a private module, its API can change at any time.

## FUNCTIONS

- set($varname, $value)

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

- $value = get($varname)

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

- $bool = 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.
