Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hash Variables

Status
Not open for further replies.

Batiatus

Technical User
Jan 27, 2006
1
0
0
US
Hi, I am new to CGI and have a question about hash variables.

What is the purpose of using them over array variables? The only difference I can see is that the key for an array is just the 0, 1, 2..., and so on, and you can specify the key for a hash. Why would you really need to assign a different key?
 
Hi

I think you are talking about Perl. Which belongs to forum219 ( Perl ).

Why need hash ? Look at the [tt]%ENV[/tt] and try to store its values in an array. Then search it and sort it. Then you will know why.

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top