Perl: Get Environment Variable

By Xah Lee. Date:
# -*- coding: utf-8 -*-
# perl

# getting environment variable

use strict;

my $userHomeDir = $ENV{"HOME"};

print $userHomeDir;             # /home/xah