in reply to Re: including variables
in thread including variables
If by accident, you forget to set the environment variables, then your program can easily check to make sure they exist. For example, you could write:
my $V = exists($ENV{'myvar'}) ? $ENV{'myvar'} : 'default value';
OR
exists($ENV{'myvar'}) or die...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: including variables
by GrandFather (Saint) on Feb 18, 2018 at 20:45 UTC |