Am Montag, 11. April 2005 10.20 schrieb Brent Clark: > Hi all Hi Brent
Here's my way to explain it from an "abstract" perspective more or less "outside" of the world of perl: [...] > I know how to create / use references for perl. But would why would you > use it. > And I think more importantly when. With a reference, you get a handy, single and small variable pointing to some more complex entity consisting of an arbitrary amount of values, or an arbitrary structure, etc. Instead of carrying your house with you, you just have its address with you, to say so :-)... With the address, you can alway find the corresponding house. It's comparable to the filename/filecontent relationship: You pass the filename (not the filecontent) around until you must access the content. With references, you can pass "everything" by referencing it with _one_ variable/value. And more, you can have multiple (different) references to the (same) entity without the need to have copies of the entity. If you change the entity by means of one of the references, the changes are instantaneously accessible by the other references. Hope this helps :-) If you got the principle, the understanding of this concept in perl code will be easy. > Im busy reading / learning the Oreilly Advanced Perl Programming book. > But for the likes of me I cant undertand when or why I would use it. > > Just something I was thinking. > > Kind Regards and thanks in advance > Brent Clark greetings joe -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>