3
0
This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues or pull requests.
dnsmanagerv1/cli/get_domains.pl
2016-01-21 20:52:59 +01:00

30 lines
444 B
Perl

#!/usr/bin/perl -w
use v5.14;
use autodie;
use utf8;
use open qw/:std :utf8/;
use Modern::Perl;
#use DNS::ZoneParse;
#use Config::Simple;
use Data::Dump qw( dump );
use lib './lib/';
use configuration ':all';
use app;
if( @ARGV != 0 ) {
say "usage : ./$0";
exit 1;
}
eval {
my $app = app->new(get_cfg());
my $domains = $app->get_all_domains();
dump($domains);
};
if( $@ ) {
say q{Une erreur est survenue. } . $@;
}