in reply to
File operations
Maybe
cmd
is hanging.
Other observations which are likely unrelated to your problem:
It looks like you have an infinite loop. How does your code break out of the while loop?
DATA is typically reserved for use with __DATA__:
Special Literals
Basic debugging checklist
Comment on
Re: File operations
Download
Code
In Section
Seekers of Perl Wisdom