1MooX::HasEnv(3) User Contributed Perl Documentation MooX::HasEnv(3)
2
3
4
6 MooX::HasEnv - Making attributes based on ENV variables
7
9 version 0.004
10
12 package MyApp::Config;
13
14 use MooX::HasEnv; # also adds use Moo;
15
16 has_env var => MYAPP_VARIABLE => '0';
17 has_env var_name => 'MYAPP_VARIABLE_NAME'; # no default
18 has_env foo => undef, '2';
19
20 use Path::Class;
21
22 has_env root => MYAPP_ROOT => file(__FILE__)->parent->parent->parent->absolute."";
23
26 IRC
27
28 Join #web-simple on irc.perl.org. Highlight Getty for fast reaction :).
29
30 Repository
31
32 http://github.com/Getty/p5-moox-hasenv
33 Pull request and additional contributors are welcome
34
35 Issue Tracker
36
37 http://github.com/Getty/p5-moox-hasenv/issues
38
40 Torsten Raudssus <torsten@raudss.us>
41
43 This software is copyright (c) 2012 by Torsten Raudssus.
44
45 This is free software; you can redistribute it and/or modify it under
46 the same terms as the Perl 5 programming language system itself.
47
48
49
50perl v5.32.0 2020-07-28 MooX::HasEnv(3)