Ah, I see your issue, you open this with the command prompt. You can  
run  them from the command prompt. So suppose you had the file in  C:\EQ\Scripts you would open the command prompt, type cd C:\EQ\Scripts  then hit enter then type perl DiabloLoot.pl all.