Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Using indexing for faster lookup in large file

by anli_ (Novice)
on Mar 02, 2015 at 17:41 UTC ( [id://1118446]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use 5.014;
    ...
        my ($id,$taxid,$text) = split(/;/, $line, 3);
        $lucy->add_doc( {id => $id, content => $text} );
    }
    
  2. or download this
    #!/usr/bin/perl
    use 5.014;
    ...
        print "$hit->{id}\t";
        print "$hit->{content}";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1118446]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2024-04-19 07:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found