![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Feb 2006
Location: 127.0.0.1
Posts: 35
Rep Power: 0
![]() |
Interpolation
I was learning hashes and one part has really confused me. I think that i may have misunderstood the concept of interpolation.
I wanted to print a value in the hash table so i used the code: print "$family_name{$given_name}\n";what I would expect however is the code to be as followed: print "$family_name{“$given_name”}\n";As i am referencing the value of the variable “given_name” rather then the variable itself; thus i would expect the double quote marks so that the variable is interpolated ( and the value of the variable is used in the expression ). I hope that this makes sense. I will be happy to clarify any points that are unclear. |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Nov 2007
Posts: 15
Rep Power: 0
![]() |
Re: Interpolation
what exactly were you trying to accomplish with the question marks.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help! linear interpolation | enjoikr3w | Visual Basic .NET | 2 | Apr 26th, 2006 1:22 AM |
| interpolation search on a million | EverLearning | C | 24 | Jun 15th, 2005 2:42 PM |