Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Term document matrix for search engine

by Anonymous Monk
on Nov 09, 2012 at 16:24 UTC ( #1003179=note: print w/ replies, xml ) Need Help??


in reply to Re: Term document matrix for search engine
in thread Term document matrix for search engine

Hashing seems a good idea. I should search a file for a specific term and then place the file address into the hash if the term is present. Can you help me with the code please, I am still not good at with hashes.
Thank you


Comment on Re^2: Term document matrix for search engine
Re^3: Term document matrix for search engine
by SuicideJunkie (Priest) on Nov 09, 2012 at 17:35 UTC

    That sounds like it would defeat the purpose of the assignment.

    Take a read through perldata, but IMO the best thing to do is have a small test.pl script on the side where you can play around try things out quickly.

    And to understand what your code is doing, I highly recommend use Data::Dumper; and then later in your code, say print Dumper \%hash;. The output from dumper is about the same as code which will create the data structure, so it is really handy for learning. Curly brackets for nested hashes, square brackets for nested arrays.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2014-10-01 16:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (29 votes), past polls