diff options
Diffstat (limited to 'examples/test3.pl')
-rwxr-xr-x | examples/test3.pl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/test3.pl b/examples/test3.pl new file mode 100755 index 0000000..9c8169f --- /dev/null +++ b/examples/test3.pl @@ -0,0 +1,16 @@ +#!/usr/bin/perl +use Data::Dumper; +use lib '../lib'; +use Asterisk::config; + +my $rc = new Asterisk::config(file=>'sip.conf'); + +print $rc->fetch_sections_hashref(); +print "\n\n"; + +if ($rc->reload()) { + print "true reload\n\n"; +} + +print $rc->fetch_sections_hashref(); +print "\n\n"; |