in reply to -w Error

The error is saying that you have defined a variable named download and never used it. The assumption that -w is making is that you will use every variable after defining it. This is supposed to catch typos like this:
$download=5; print $dwonload;
which is perfectly valid, but doesn't do what you want it to do...