papp-env - get/set/clear/display environment variables
papp-env --help
List all environment variables in name=value format (warning, might contain binary data):
papp-env
List the value of a single environment variable (without trailing newline):
papp-env myvar
Set some env-variables:
papp-env var1=value1 var2=value2 "var3=value 3" var4="contains == equal!"
Unsetting instead of setting env-variables:
papp-env -u var1 var2 var3
Combine almost all of the above:
papp-env var=value printvar1 -u v2 v3 v4
Evaluate value as perl code rather than as strings:
papp-env -e arrayvar="['val1', 'val2']" hashvar="{ a => 5, b => 7}"
This program is used to query and set PApp environment variables.
Settings that are associated with specific PApp applications often can be used in PApp environment variables.
Environment variables are also useful for asynchronous communication between PApp applications and outside apps.
PApp.
- no handling of binary data or perl-structures
Marc Lehmann <schmorp@schmorp.de> http://www.goof.com/pcg/marc/
To install PApp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PApp
CPAN shell
perl -MCPAN -e shell install PApp
For more information on module installation, please visit the detailed CPAN module installation guide.