Dpkg::BuildEnv(3perl) libdpkg-perl Dpkg::BuildEnv(3perl)

# [NAME](#NAME)

Dpkg::BuildEnv - track build environment

# [DESCRIPTION](#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](#FUNCTIONS)

[set($varname, $value)](#set%28$varname,)

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](#CHANGES)

## [Version 0.xx](#Version_0.xx)

This is a private module.

2026-09-09 1.23.11-dirty

---

Document: Dpkg::BuildEnv(3perl) from dpkg 1.23.11-r2 (Chainguard OS)
Source: https://git.dpkg.org/git/dpkg/dpkg.git
