the previous post asked for working examples... it's difficult to cut out brief parts
Though it may be difficult, it's a good training exercise for you in learning Perl.
The act of creating a small cut-down program should help
you focus on and better understand the problem;
you may even find you're able to identify the
problem and fix it yourself.
BTW, instead of your global NS file handle and the:
claptrap, you should use a lexical file handle
say) and then simply:
With recent Perls (5.8+), there's no need anymore to confusingly change the (global) default destination
for print statements via the old evil one-argument form of select
more details, see Perl Best Practices
, chapter 10 and
Perl tip: Buffering and IO::Handle
(for Perl 5.14+ you
don't need use IO::Handle
Suggest you further read
Suffering from Buffering.