Request: Add Example to Wiki Page to Read KM Variables in Perl


The wiki page has this instruction:

This is not sufficient for newbies like me. I tried the following and got it wrong.

# this is wrong
my $var = $KMVAR_VarName

I was mislead by the Shell example and thought we could read KM variables into Perl in the same way.

The correct way to use KM variable in Perl is to do this:

# this is correct
my $var = $ENV{KMVAR_VarName};

I learned it from @mrpasini in this post.

The Python example, on the other hand, is very clear.

Hey Martin,

Okay, have a look at the changes I made.



Looks great!
Thanks, Chris!

1 Like