[Catalyst] [OT] Best way to have the controller do something just

A. Pagaltzis pagaltzis at gmx.de
Tue Sep 5 00:42:30 CEST 2006


* Jonathan Rockway <jon at jrock.us> [2006-09-04 01:25]:
> > undef *{ __PACKAGE__ . "::begin" };
> 
> This is admittedly the first thing that came to mind, but the
> man page recommends that you write undef $package::{symbol}
> instead.

Ah, yes, the `%package::` hash. Forgot about that, sorry.

Still, the use-globref-to-assign approach I showed is even
better, since it’s 100% strict-checked.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



More information about the Catalyst mailing list