in reply to Accessing module variables
It might be better to use a config file:
#!/usr/bin/env perl use strict; use warnings; use Config::Tiny; use Data::Dump; my $config = Config::Tiny->read(q(talexb.cfg)); dd $config; __END__
[credentials] user = 'Joe'; password = 'Secret123'; url = 'www.example.com'; prefix = 'EX';
Quite easy and untested. If this is what you wanted. See also Config::Tiny.
Best regards, Karl
«The Crux of the Biscuit is the Apostrophe»
perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Accessing module variables
by talexb (Chancellor) on Apr 20, 2018 at 11:58 UTC |