None of the two options. He is trying to send commands to an AR Drone. AVR is part of the hardware.
BTW, you should note that the AR Drone software has already opened the serial port. So It is also adviseable to kill the drone control software before trying to run this script.
Everytime you omit 'use strict;' a $kitetn becomes undef.