missed cmds under redhat 9.0

john heasley heas at shrubbery.net
Sat Aug 23 19:13:36 UTC 2003

Wed, Aug 13, 2003 at 03:52:51PM -0400, King, David:
> The perl "study" command appears to cause the problem in RedHat 9. What I
> have determined at this point is that study in a sub (like sub ShowVersion)
> causes the regexp not to match when it returns to "main". Therefore a line
> in the router config is skipped. Remove "study" from the subs that use it
> and the problem will go away. (An alternative is to move study after the
> "last" statement which is a few lines later. This only causes the last line
> before the next command not to be "studied".)
> If you notice, the commands being skipped all follow a command whose output
> is parsed by a sub that uses study.
> I haven't determined if this is something specific to the way study is used
> in rancid or a general RedHat 9/perl 5.8.0 problem. 
> At least, that worked for me, YMMV,
> David King

use of study was a prayer of squeezing a little more out of perl. :)
i have removed them.  thanks.

More information about the Rancid-discuss mailing list