Linux environment variables (%ENV)
#!/usr/bin/env perl
use v5.10;
use strict;
use warnings;
say $ENV{PATH};
for my $name (sort keys %ENV) {
say $name;
}
$ENV{LANG} = 'Klingon';
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
#!/usr/bin/env perl
use v5.10;
use strict;
use warnings;
say $ENV{PATH};
for my $name (sort keys %ENV) {
say $name;
}
$ENV{LANG} = 'Klingon';