---
name: "SCGI.scgiEnv"
section: "3kaya"
platform: "linux"
package: "kaya"
version: "0.4.4-6.2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/SCGI.scgiEnv"
---

# SCGI.scgiEnv(3kaya)

Get the value of an environment variable

## NAME

SCGI::scgiEnv - Get the value of an environment variable

## SYNOPSIS

**String scgiEnv(** *String key* **)**

## ARGUMENTS

**key** Name of the environment variable

## DESCRIPTION

Since environment variables are handled differently under the SCGI protocol to the conventional manner, this function must be used instead of **System.getEnv (3kaya)** to read environment variables within an SCGI application.

## AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/

## LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.
