As GotToBTru said, it's probable $content doesn't contain anything. Isn't there a way to check if the command failed with whatever module you're using?
Though here the problem probably isn't with the file, it can happen, and you can get that kind of information by checking the return value of print: print DATA $content or die "Couldn't write to file: $!";
In reply to Re: File operations
by Eily
in thread File operations
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |