go ahead... be a heretic | |
PerlMonks |
Re: sort using <=>by VSarkiss (Monsignor) |
on Aug 13, 2004 at 18:35 UTC ( [id://382791]=note: print w/replies, xml ) | Need Help?? |
Are you wondering why the second loop (the foreach) isn't doing anything? It's because you only come out of the while loop above it after reading everything out of the D filehandle, so the foreach over the same handle will never enter the block. I'm not sure exactly what you're trying to do, so I'm not sure how to tell you to fix it. But that's the reason you're not getting anything written to FOO.
In Section
Seekers of Perl Wisdom
|
|