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:
  Read Huge File into Hash  pangpang at 18:24 on Monday, March 02, 2009
 

Hi,

Anyone know how to read huge file into hash? Anything more efficient than the following codes?

while($line = <INFO>){
chomp $line;
($name, $element) = split(/:/, $line);
push @{$sets{$name}}, $element;
}

Thank you!!








CodeToad Experts

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








Recent Forum Threads
•  Re: Passing Password using $ssh->cmd
•  Re: sum of columns
•  pop up Click-able Calendar need to output to 3 text fields
•  need HELP importing a data file....
•  Read Huge File into Hash
•  Client Server Communication
•  Linking two separate iframes from two different wepages
•  Linking two separate iframes from two separate webpages
•  Re: number of regex match


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-2009