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
In reply to Re: Accessing module variables
by karlgoethebier
in thread Accessing module variables
by talexb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |