Tie a file to a hash

Discussion in 'Perl' started by SpecialK, Feb 19, 2004.

  1. SpecialK

    SpecialK Guest

    Does anyone know how to tie a large file to a hash without using shared
    memory?
    I know I can use Tie::File to tie the file to an array and from the array
    create a hash, but I need something that is much faster than that?

    thanks,
    gregk
     
    SpecialK, Feb 19, 2004
    #1
    1. Advertising

  2. SpecialK

    Ben Morrow Guest

    "SpecialK" <> wrote:
    > Does anyone know how to tie a large file to a hash without using shared
    > memory?
    > I know I can use Tie::File to tie the file to an array and from the array
    > create a hash, but I need something that is much faster than that?


    How do you want the file to be tied? In particular, what do you want to
    be the keys and what the values of the hash?

    Ben

    --
    Razors pain you / Rivers are damp
    Acids stain you / And drugs cause cramp. [Dorothy Parker]
    Guns aren't lawful / Nooses give
    Gas smells awful / You might as well live.
     
    Ben Morrow, Feb 19, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. SpecialK

    Tie a large file to a Hash

    SpecialK, Feb 19, 2004, in forum: Perl
    Replies:
    0
    Views:
    467
    SpecialK
    Feb 19, 2004
  2. SpecialK
    Replies:
    0
    Views:
    555
    SpecialK
    Feb 20, 2004
  3. rp
    Replies:
    1
    Views:
    591
    red floyd
    Nov 10, 2011
  4. botfood

    tie() with DB_File not tie()ing ?

    botfood, Apr 24, 2006, in forum: Perl Misc
    Replies:
    23
    Views:
    481
    botfood
    Apr 26, 2006
  5. Eric

    Dumping Perl tie hash file

    Eric, Mar 9, 2007, in forum: Perl Misc
    Replies:
    6
    Views:
    187
    DJ Stunks
    Mar 10, 2007
Loading...

Share This Page