Think about Loose Coupling | |
PerlMonks |
Re: recursively comparing heterogenous data structuresby bikeNomad (Priest) |
on Jul 06, 2001 at 21:00 UTC ( [id://94517]=note: print w/replies, xml ) | Need Help?? |
You can generalize this into a more useful routine by allowing the user to provide optional subroutine refs that will be called when:<bl>
See Algorithm::Diff for an example of passing in such subroutines. And you should also provide for an extra scalar that will be passed to the user subroutines, so the user can provide context to them without using globals.
In Section
Craft
|
|