I've encountered a curious problem in both Multiedit and Crimson Editor with Perl's "die" function. When I run a script that prints (say, listing filenames as its processing them), a frame pops up in the bottom of the screen, showing me what's in the STDOUT as it comes up--which is fine and dandy. However, if it encounteres a "die", the message associated with the die will appear right in the middle of the output, and only the error type will appear at the end. So, at the very end of the STDOUT you might see:
At file alsdlkrj.txt
At file asldkrjasdtliu.txt
At file blahblah.txt
Terminated with exit code 9
Now, when I scroll up to about 2/3rds down the STDOUT window, I see:
At file asdrlkjgad.txt
AtFile descriptors didn't match gafpmd.txt
At file asdalrkadjtdij.txt
Where "File descriptors didn't match" is the message associated with the encountered "die" function. Interestingly, when I run this from a windows shell this doesn't happen--the die message appears at the end where it should.
My guess is some funky flushing is going on. Any thoughts?
At file alsdlkrj.txt
At file asldkrjasdtliu.txt
At file blahblah.txt
Terminated with exit code 9
Now, when I scroll up to about 2/3rds down the STDOUT window, I see:
At file asdrlkjgad.txt
AtFile descriptors didn't match gafpmd.txt
At file asdalrkadjtdij.txt
Where "File descriptors didn't match" is the message associated with the encountered "die" function. Interestingly, when I run this from a windows shell this doesn't happen--the die message appears at the end where it should.
My guess is some funky flushing is going on. Any thoughts?