|No such thing as a small change|
Iterating over *any* thing in Perlby Schemer (Scribe)
|on Dec 03, 2002 at 05:57 UTC||Need Help??|
Schemer has asked for the wisdom of the Perl Monks concerning the following question:
In a post in 'Meditations', John M. Dlugosz made a claim (that I would believe might be true) about how ``in Perl 5 the contents of anything can be inspected and iterated.''.
So I was wondering how can one iterates over the content of an object? What's the general function to access each field of an object and look for uninitialised value for exemple?
And also, it there a way to iterate over the content of a closure? Like if I'd want to kill intern references to outside objects or something?
This might be more a 'language' question than a practical one...
Thanks in advance for any insights!