codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  put entire hash into a data structure.  mimir at 15:50 on Wednesday, January 23, 2008
 

#i have a hash, and i want this hash to become a member of another hash.
#e.g.

%ages = {john=>3, siggi=>13}

#and now i attempt to make this hash a member of another data structure:
$all_about_people{ages} = %ages;

#but it doesn't work and i dont know how to throw a hash into a structure like that.
#Does anybody know?



  Re: put entire hash into a data structure.  mimir at 16:20 on Wednesday, January 23, 2008
 

#i got it... the answer is:

%all_about_people = (ages => {%ages});


#thanks for nothing (joke)










CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: How to open a MS Word document from Javascript
•  Re: Help: Trouble with z-Index and SELECT lists
•  Re: From variable to function?
•  Re: put entire hash into a data structure.
•  302 Error, on a Web Bot
•  A bracket with both !? and ?:
•  Re: Learning Perl
•  Re: adding a single \ to text
•  Re: problem with STDIN func.


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2008