perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Cholet" <cho...@logilune.com>
Subject Re: Apache::Symbol::undef_functions;
Date Thu, 10 Aug 2000 14:10:28 GMT
> > > 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



Mime
View raw message