Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Modules: Building blocks for the Daft Adventureby Masem (Monsignor) |
on Jun 12, 2001 at 15:41 UTC ( [id://87774]=note: print w/replies, xml ) | Need Help?? |
Right idea: you probably are meaning to use coderefs.
The way I've been using coderefs is as follows: That is, the &$mod is a function call of a deref'ed coderef. To actually call this, you can do it by one of two ways: (The \& here creates a reference to the function modify). What's nice about coderefs is that they then can be used as variables, and allow you to quickly do different functions depending on what you pass: </CODE> Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
In Section
Seekers of Perl Wisdom
|
|