Mar 7, 2017, 9:32 AM
Post #5 of 5
Re: [digioleg54] what is correct syntax?
[In reply to]
Also, if I get a variable value from %ENV, should I check if it is defined or not?
Well, it's not mandatory to check, but you should probably check if you're going to use that variable for anything important. Then it also depends on which environment variable you're using: some will be almost guaranteed to exist, other are more likely to be undef. And then, there is always the possibility that it will not be defined just because to made a typo in the name.