in reply to map function - print to file problem

Your description is misleading, since you're not trying to print "within the map function". OTOH your code still has many quirks which many people has been repeatedly warning you about, including but not limited to unchecked opens and useless pieces of code. Refusal to correct these bad habits is a symptom of your nonwillingness to follow the advices you're asking for...

Now, the way you chain the first map with grep suggests me that you have a poor understanding, if any, of the code you're working on. If this were for a one-time only dirty and uninformed hack, we could accept it. But since it seems you want to stick with perl, a basic understanding of it would be welcome. Intentionally avoiding it is irrespectful either.

All in all it's (next to) imnpossible to really understand from both your code and the description of your prolem what the latter is.

  • Comment on Re: map function - print to file problem

Replies are listed 'Best First'.
Re^2: map function - print to file problem
by Win (Novice) on Oct 19, 2005 at 12:52 UTC
    I was just thinking that I must return to those Perl books that I read years ago. I used to have some understanding of the map function. I have to admit that I no longer have it. I take your point on board.