perl using hash

i want to ask is it i can use hash in perl to store a page number with a list of words which is in that page and then print it out?

Example
Page 1 contains a are boy cat ............. (a list of sorted words)

how can i store it in a hash?
Thank you

Of course you can, almost anything can be stuffed into a hash, even if an array of arrays would suffice. You (and we) would only need to know how pages are delimited, where they are coming from, ...

ok thank you, but actually how can i do it?

Since you yourself don't really know that, how should we?