in reply to perl beginner question

You will get the best help if you post a stripped down runnable example that demonstrates your problem. Most of the time you will see, that while composing such an example you find the bug yourself and don't need to post it...

Cheers, Christoph

Replies are listed 'Best First'.
Re^2: perl beginner question
by Perlbotics (Archbishop) on May 24, 2009 at 18:47 UTC

    Good advice/observation. Reminds me remotely of Did you talk to the bear? - found here: brian's Guide to Solving Any Perl Problem.

    Did you talk to the bear?

    Explain your problem aloud. Actually say the words.

    For a couple of years I had the pleasure of working with a really good programmer who could solve almost anything. When I got really stuck I would walk over to his desk and start to explain my problem. Usually I didn't make it past the third sentence without saying ``Never mind---I got it''. He almost never missed either.

    Since you will probably need to do this so much, I recommend some sort of plush toy to act as your Perl therapist so you do not annoy your colleagues. I have a small bear that sits on my desk and I explain problems to him. My wife does not even pay attention when I talk to myself anymore.

Re^2: perl beginner question
by Anonymous Monk on May 24, 2009 at 15:00 UTC
    Hi Christoph, Thanks for the input.try to post like what you suggested on next time...