On Dec 9, 2003, at 12:14 AM, [EMAIL PROTECTED] wrote:
I would like to read something about passing code inside function. Lets say
that:
This works: perl -e 'sub a(&){print(&{$_[0]}, "/n"};$_=0; a {$_++} foreach 1..100'
what you might want to think about is trying that as 'code' rather than as a command line gambit.
What you seem to be interested in is doing what is elsewhere known as a 'call back' - and one of the better places to peek would be in
perldoc -m File::Find
to look at the actual implementation in the module,
perldoc File::Find
to look at the POD about the module.
HTH.
ciao drieux
---
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>