title: Resolve mac address by host name
body: <p>I've wrote several perl scripts during my internship, and I would like to simplify the use of them. The scripts asks in arg, a mac address, and returns which switch is connected, speed...etc.
  Instead of giving a mac address, I would like to give a host name of a computer. So, how can I resolve the hostname to mac address ?<br>
  Thanks, bye.  </p>
  
  <p>Edit -> Solution could be : bash command or perl module or something powerfull like that...</p>