in reply to perl script not giving output
If your Perl script produces the wrong line endings for your OS, you may end up with the appearance of a single line of output when there are in fact many, especially when using the cat command or similar from the command line. I've run into this before.
In Section
Seekers of Perl Wisdom