in reply to Large File Parsing

These lines, especially the last, clearly show that you have copy-pasted something you don't understand:
use warnings; use strict; use Data::Dumper;
Not to mention the fact that your script doesn't even run -- where is %hash defined?

Replies are listed 'Best First'.
Re^2: Large File Parsing
by afoken (Chancellor) on Jan 03, 2010 at 09:25 UTC

    Please don't read the previous posting as "using strict and warnings is nonsense", the opposite is true: Always use strict and warnings (except in rare situations like Perl golf). The use of Data::Dumper is nonsense here, and it really looks like cargo cult.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

      You always add in use Data::Dumper; whenever you want to debugprint a datastructure and remove it as soon as you remove all debug prints that need it? Really? I quite often leave it there knowing that sooner or later I'll need it again.

      Sometimes the holly war against cargo culting is a bit cargo cultish.

      Jenda
      Enoch was right!
      Enjoy the last years of Rome.

        That is indeed the same reason I use it. I am open to other, better solutions. At least I learned now about cargo cult...
        I solved my problem by using Tie::File, but thank you for all your answers!

        Cheers,
        Thomas
        You always remove your debug prints? "2>/dev/null" is the new #define NDEBUG! Seriously, it bugs me a bit when someone posts blatantly broken code prefaced by a bunch of monk-placating boilerplate. It shows that the OP has learned the wrong things from reading the site.
Re^2: Large File Parsing
by RobertCraven (Sexton) on Jan 03, 2010 at 23:20 UTC
    The hash is populated from a DB.