in reply to accessing values

The functionality you seek is traditionally provided by a "config file".

Here is a sample, using Config::Tiny:

$ cat myconfig.ini var1=hello var2=perl
$ perl -MConfig::Tiny -e 'my $Config = Config::Tiny->read("myconfig.i +ni"); print $Config->{_}{var1},"\n", $Config->{_}{var2},"\n"' hello perl

                "Imaginary friends are a sign of a mental disorder if they cause distress, including antisocial behavior. Religion frequently meets that description"

Replies are listed 'Best First'.
Re^2: accessing values
by frank1 (Monk) on Oct 15, 2020 at 14:33 UTC

    Thank you. this solution has worked for me