| 1 | # You may distribute under the terms of either the GNU General Public License | ||
| 2 | # or the Artistic License (the same terms as Perl itself) | ||
| 3 | # | ||
| 4 | # (C) Paul Evans, 2015 -- leonerd@leonerd.org.uk | ||
| 5 | |||
| 6 | package IO::Async::Resolver::DNS::Constants; | ||
| 7 | |||
| 8 | 6 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 6 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 6 | our $VERSION = '0.06'; | |
| 12 | |||
| 13 | 6 | my %constants = ( | |
| 14 | ERR_NO_HOST => 1, | ||
| 15 | ERR_NO_ADDRESS => 2, | ||
| 16 | ERR_TEMPORARY => 3, | ||
| 17 | ERR_UNRECOVERABLE => 4, | ||
| 18 | ); | ||
| 19 | |||
| 20 | 6 | require constant; | |
| 21 | 6 | constant->import( \%constants ); | |
| 22 | |||
| 23 | 6 | ▶ | use Exporter 'import'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | 6 | our @EXPORT_OK = keys %constants; | |
| 25 | |||
| 26 | 6 | 0x55AA; | |