> > > I'm trying to replicate StatINC in Dispatch.pm and ran
> > across something
> > > interesting.
> > >
> > > a call to
> > > $class->Apache::Symbol::undef_functions;
> > >
> > > makes my OO behave oddly - instead of returning the rc of
> > the method, it
> > > returns the method name.
> > >
> > > I know - "What?"
> > >
> > >
> > > $method = "foo;
missing double quote at the end of the line. Does this explain
anything?
> > > $rc = $class->$method(); # $rc=1
> > >
> > > #now, undef_functions, delete and require, then
> > > $rc = $class->$method(); # $rc="foo"
> > >
> > > #just delete and require, no undef_functions
> > > $rc = $class->$method(); # $rc=1, but warns "Subroutine
> > foo redefined"
> > >
> > > weird, eh?
--
Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]