just a guess
what happens to $myLine after building it?, 3000000 X 4KB is huge, if you are using that as a plain hash key, your memory may be eaten completely, check another way of solving it.
by building that unique number what you want to achieve?
Vivek
-- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.