Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Prototypes and hand-written MMDby ph713 (Pilgrim) |
on Jan 11, 2006 at 01:36 UTC ( [id://522368]=note: print w/replies, xml ) | Need Help?? |
Don't forget that closures created by using & prototypes can be dangerous. They leak memory under certain patterns of usage, and can generally be a PITA to debug.
Honestly, anything you could do in the past with the & prototype can probably be done cleaner and without closure-leakage issues using Source Filters (see perldoc perlfilter). The only reason to avoid that route is if you need to support pre-5.8 perls without installing optional modules or something.
In Section
Seekers of Perl Wisdom
|
|