I've been working with perl for a while now, and I still have not been able to grasp the concept of references. I've got Beginning Perl by Simon Cozens published by Wrox, I have the Camel, and the cookbook. After reading the information, and trying to ask people as well I still cannot understand what references are, and why the are used. To me they seem more trouble than they are worth... I know that with some modules, I have to use an array reference, and some spit out a reference to a hash... References to hashes just totally blow my mind... Usually the program will yell at me that I have to use an array reference and I know to put a '\' in front of the '@'.
If someone can help me out, or point me to a good explanation on the web for references I would greatly appreciate it... Thanks Keith 'No Reference' Meidling :-) -----Original Message----- From: david [mailto:[EMAIL PROTECTED]] Sent: Monday, September 23, 2002 2:57 PM To: [EMAIL PROTECTED] Subject: RE: join hashes? Sean D. Rowe wrote: > I know it's a reference to a hash. What I don't know is why it's printing > out like this. I have hash values that I need to print out, but not in you know it's a reference to a hash. good. the HASH(Ox1c6ed80) thingy is the memory address of the reference. > any order, so I put each hash value that I want to print in a join > statement in ----Snip code----- see if you can figure out what prints out. if you don't know what will print out from the above, you haven't master reference in perl yet. not only is $hash a reference to hash. its values are also reference to hash! if you still can't figure out your problem, post the portion of code that you suspect is wrong so we can check for you. david -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]