in reply to mod_perl and forwarding legacy functions to a global object
The old Legacy probably didn't have objects hanging around, so how about restricting the object to a lexical scope?
Even just making the object a file scoped lexical would work, but I don't see a need to make a closure on it.package Legacy; sub Ugly_Sub_Name { my $new_obj = New->new(); $new_obj->pretty_method; }
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: mod_perl and forwarding legacy functions to a global object
by elusion (Curate) on Jun 25, 2004 at 17:54 UTC |