InfiniteLoop has asked for the wisdom of the Perl Monks concerning the following question:
sub read_conf { my $self = shift; my $conf_file = shift; local $/ = "\n"; my $conf = Config::ApacheFormat->new(); $conf->read($conf_file); .... }
Error in config file , line 1: unable to parse line at ....
perl -MMyPackage -e 'local $/;my $obj = MyPackge->new;$obj->read_conf +("/path/to/conffile");'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Config::ApacheFormat and $/ strangeness
by perrin (Chancellor) on Nov 28, 2006 at 20:37 UTC | |
|
Re: Config::ApacheFormat and $/ strangeness
by InfiniteLoop (Hermit) on Nov 28, 2006 at 20:44 UTC | |
|
Re: Config::ApacheFormat and $/ strangeness
by madbombX (Hermit) on Nov 28, 2006 at 17:37 UTC | |
by InfiniteLoop (Hermit) on Nov 28, 2006 at 18:28 UTC |