How to use the wakeonlan perl script instead of etherwake.exe

I had a problem with etherwake.exe when crossing multiple subnets and could not get Wake On Lan to work so I tried the wakeonlan perl script located here /usr/bin/, with some minor edits to the wol.php file located here /var/www/fog/wol/. Wakeonlan perl script allows you to add subnet masks using the -i switch and that is what I had to do for each subnet I needed to reach.

Below is a sample copy of my wol.php file...

