in reply to file handling in perl whatz the problem???

This is a perfect thing to use to learn the debugger. If you step through your program examining the variables involved in that step, you'll find your mistakes on the first iteration. You only need "n" (next) and "p" (print), and "q" (quit) for this.

Seriously. You really ought to try the debugger.

  • Comment on Re: file handling in perl whatz the problem???

Replies are listed 'Best First'.
Re^2: file handling in perl whatz the problem???
by davido (Cardinal) on Jul 15, 2011 at 15:15 UTC

    Hmm, that post sounds like it might have come from someone who had been in attendance at the Thousand Oaks Perl Mongers meeting a couple nights ago. The Perl Debugger was one of the topics. And I myself have finally vowed to become more comfortable with it.

    Or you may just already be a believer, and kudos for that.

    To that end, there is perldebtut and perldebug. I would probably take them in that order. The topic is also covered in the Camel book, and the Alpaca book.


    Dave

Re^2: file handling in perl whatz the problem???
by vikashiiitdm (Novice) on Jul 18, 2011 at 09:25 UTC

    thanks for the suggestion, but can u please help me with what could b the problem?