Subject: | Cannot specify '=>' as a seperator |
When trying to read a config file such as this:
[directories]
astetcdir => /etc/asterisk
using:
use Config::Std;
use Config::Std { def_sep => '=\>' };
my $configfile = "asterisk.conf";
my $section = "directories";
read_config "$configfile" => my %config;
my $astetcdir = $config{$section}{'astetcdir'};
print "astetcdir = $astetcdir\n";
the module reports the '>' sign as part of the file like this:
astetcdir = > /etc/asterisk
How do we fix that?