| 1 | #!/usr/bin/perl -w | ||
| 2 | # $Id: test.Config.pl,v 1.1 2000/05/01 21:53:40 matt Exp $ | ||
| 3 | use lib qw(.); | ||
| 4 | use Config; | ||
| 5 | my $cfg = new GoXML::Config; | ||
| 6 | |||
| 7 | print "1) Load one file:\n\n"; | ||
| 8 | |||
| 9 | my %chash = $cfg->load_conf("test.xml") or die $cfg->err_str; | ||
| 10 | |||
| 11 | for (sort keys(%chash)) { | ||
| 12 | print "* $_ = $chash{$_}\n"; | ||
| 13 | } | ||
| 14 | |||
| 15 | print "2) Load a couple files:\n\n"; | ||
| 16 | print "\t- NOT IMPLEMENTED.\n\n"; | ||
| 17 | |||
| 18 | |||
| 19 | print "If you see no error, it worked :)\n"; |