From: Dennis G. <dg...@re...> - 2004-05-13 14:42:27
|
In this line: @text =3D <TEXT>; it is assuming that $/ is set to "\n", which would result in @text containing an entry for each line in the config file. If $/ is undefined, then @text winds up with a single entry, which contains the entire contents of the config file. When this happens, the parse method of PropertyConfigurator fails. I'm seeing this in Perl 5.8.3 on FC1. -- Dennis On Thu, 2004-05-13 at 02:59, Mike Schilli wrote: > Dennis Gregorovic wrote on 5/12/2004, 5:35 PM: >=20 > > The config_read method assumes that the input separator ($/) is set to > > "\n" when it reads in the config file. The attached patch sets the > > input separator so that the code doesn't break if the assumption is > > false. >=20 > Not sure I'm following ... why is it assuming $/ is set to "\n"? Also,=20 > please let me know which OS you're seeing a problem on. >=20 > -- > -- Mike > Mike Schilli > m...@pe... |