bct has asked for the wisdom of the Perl Monks concerning the following question:
I'm currently teaching a workshop for learning Perl. We've covered the basics and essentially followed through Learning Perl. We're into references and my students seem to be getting it, but yet I'm thinking they also don't seem to get it.
They understand how to create a ref and deref it,etc, but I think they are failing to appreciate the critical utility of references. I've used the array-flattening problem with subroutines, and we've gone over matrix representation, etc., but I ask the Monks, do you know of a particularly inspiring example to demonstrate the awesome power/necessity of references? Something that is sure to get the light turned on???
Any thoughts much appreciated...
BCT
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Examples of the importance of references?
by GrandFather (Saint) on Mar 17, 2006 at 01:09 UTC | |
|
Re: Examples of the importance of references?
by revdiablo (Prior) on Mar 17, 2006 at 01:04 UTC | |
|
Re: Examples of the importance of references?
by spiritway (Vicar) on Mar 17, 2006 at 04:24 UTC | |
|
Re: Examples of the importance of references?
by zer (Deacon) on Mar 17, 2006 at 01:12 UTC | |
|
Re: Examples of the importance of references?
by zentara (Cardinal) on Mar 17, 2006 at 12:03 UTC | |
|
Re: Examples of the importance of references?
by gex (Scribe) on Mar 17, 2006 at 06:29 UTC | |
|
Re: Examples of the importance of references?
by johngg (Canon) on Mar 17, 2006 at 09:09 UTC | |
|
Re: Examples of the importance of references?
by planetscape (Chancellor) on Mar 17, 2006 at 17:31 UTC | |
|
Re: Examples of the importance of references?
by gaal (Parson) on Mar 17, 2006 at 11:32 UTC |