No such thing as a small change | |
PerlMonks |
Re: Magicby mirod (Canon) |
on Oct 12, 2001 at 19:26 UTC ( [id://118500]=note: print w/replies, xml ) | Need Help?? |
The most immediate "magic" in Perl is usually the result of the deliberate DWIM-ism (Do What I Mean) of the language: the interpretor goes out of its way to do what people expect it to do, even though that might not be the real logical thing to do.
2 examples:
There are more. In fact Perl goes beyond trying to "make the easy things easy", it tries real hard at "making not-so-easy things look easy". That's Magic! There are of course other kinds of magic: tie-ed variables look like ordinary variables but behave magically (of course, as they have set the "Magic bit"), then there are deeper kinds of magics, but you will have to attend Dominus classes to learn them...
In Section
Seekers of Perl Wisdom
|
|